Purpose
Sets the value of a string property in a node. This can also be used to set the colour parameter of a material.
Syntax
void SetString(String PropertyName, String value);
- PropertyName : the property within the node. Starts with
GroupName.Property
e.g.Transform.Position X
- value: the string value the property is to be set to
Example
function Update() {
layer = Document.FindLayer("My Layer");
node = layer.FindNode("MyTextNode");
node.SetString("Attributes.Text String", "Dormant");
}
function Update() {
layer = Document.FindLayer("My Layer");
node = layer.FindNode("MyShape3DNode");
node.SetString("Material.Colour", "0,0.1,0.4,1.0");
}