SetTransformArrayUVScaleOffset()
Purpose #
Sets the UV scale and offset of an element from an Exposable Array node.
Syntax #
void SetTransformArrayUVScaleOffset(int element_id, float scale_x, float scale_y, float offset_x, float offset_y);
Parameters
element_id | The element ID to set. |
offset_x | The offset X value. |
offset_y | The offset Y value. |
scale_x | The scale X value. |
scale_y | The scale Y value. |
Example #
function Update()
{
layer = Document.FindLayer("My Layer");
node = layer.FindNode("Exposable Array");
node.SetTransformArrayUVScaleOffset(0, 1.0, 1.0, 0.0, 0.0);
}