Notch Notch
Manual 1.0 Manual 0.9.23
 Light | Dark
SetInt()

SetInt()

Updated: 4 Mar 2024

Purpose #

Sets the value of an integer property in a node. Returns a bool to indicate whether the value for successfully set or not.

Syntax #

bool 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");
    var wasSet = node.SetInt("Attributes.Frame Grab Active", 1);
}
Checkboxes are integer properties. Selection boxes and dropdowns are integer properties.