Notch Notch Manual 0.9.23
 Light | Dark
SetTransformArrayUVScaleOffset()

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_idThe element ID to set.
offset_xThe offset X value.
offset_yThe offset Y value.
scale_xThe scale X value.
scale_yThe 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);
}