getColor


This function has two versions: getColor(vec2) and getColor(int ,vec2).

getColor(vec2)

Description :

  • Get the color of inLayer in specified position.

Parameters :

  • vec2 : uv position.

Return :

  • vec4 : a RGBA color.

getColor(int,vec2)

Description :

  • Get the color of specified layer in specified position.

Parameters :

  • int: layer id, -1 (or AE_INPUT_LAYER) means inLayer, a number between 0 and 9 means the corresponding Layer Parameter in your plugin panel. (PW_TEMP_LAYER (which is -2) is provided in Lua render mode)
  • vec2 : uv coordinates.

Return :

  • vec4 : a RGBA color.

NOTE :

  • So in other words, getColor(AE_INPUT_LAYER,uv); totally equals to getColor(uv);
  • getColor(n,uv); can return the pixels of layer[n].

results matching ""

    No results matching ""