LayerX

 

Function

The LayerX function is exactly like ColorX, except that you also have access to a second image. This allows you to composite with expressions. The values of the second image are accessed with the variables r2, g2, b2, a2, and z2.

 

Parameters
Type
Defaults
Function
r,g,b,a,zExpr
float
r, g, b, a, z The expresssion used for each individual channel.

Synopsis

image LayerX(
  image Foreground, 
  image Background, 
  float expression rExpr,
  float expression gExpr,
  float expression bExpr,
  float expression aExpr,
  float expression zExpr

);

Script

image = LayerX( 
  Foreground, 
  Background, 
  rExpr,
  gExpr,
  bExpr,
  aExpr,
  zExpr
);

Command Line

shake -layerx image expr

See Also
ColorX