LayerX

Function

This function is exactly like ColorX, except that you also have access to a second image, allowing you to do compositing with expressions. The values of the second image are accessed with the variables r2, g2, b2, a2, and z2. For a larger explanation of this function, jump to ColorX.

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