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_id | The element ID to set. |
position_x | The position X. |
position_y | The position Y. |
position_z | The position Z. |
rotation_x | The rotation X. |
rotation_y | The rotation Y. |
rotation_z | The rotation Z. |
scale_x | The scale X. |
scale_y | The scale Y. |
scale_z | The 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);
}