Notch Notch Manual 1.0
 Light | Dark
SetTransformArrayPRS()

SetTransformArrayPRS()

Purpose #

Sets the position, rotation and scale of an element from an Exposable Array node.

Syntax #

void SetTransformArrayPRS(int element_id, float position_x, float position_y, float position_z, float rotation_x, float rotation_y, float rotation_z, float scale_x, float scale_y, float scale_z);

Parameters

element_idThe element ID to set.
position_xThe position X.
position_yThe position Y.
position_zThe position Z.
rotation_xThe rotation X.
rotation_yThe rotation Y.
rotation_zThe rotation Z.
scale_xThe scale X.
scale_yThe scale Y.
scale_zThe scale Z.

Example #

function Update()
{ 
    layer = Document.FindLayer("My Layer");
    node = layer.FindNode("Exposable Transform Array");
    node.SetTransformArrayPRS(0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0);
    node.SetTransformArrayPRS(1, 0.0, -1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0);
}