Notch Notch Manual 0.9.23
 Light | Dark
SetInt()

SetInt()

Purpose #

Sets the value of an integer property in a node.

Syntax #

void SetInt(String property_name, int value);

Parameters

property_nameThe property within the node. Starts with <GroupName>.<Property> e.g. 'Transform.Position X'
valueThe integer value the property is to be set to.

Example #

function Update()
{ 
    layer = Document.FindLayer("My Layer");
    node = layer.FindNode("Frame Buffer");
    node.SetInt("Attributes.Frame Grab Active", 1);
}
Checkboxes are integer properties.