Notch Notch Manual 0.9.23
 Light | Dark
AddInput()

AddInput()

Purpose #

Creates an input connection between a node and a property.

Syntax #

void AddInput(object node, String property_name);

Parameters

nodeThe node to connect an input from.
property_nameThe name of the property to connect an input to.

Example #

function Update()
{ 
    layer = Document.FindLayer("My Layer");
    node = layer.FindNode("Image 2D");
    mathNode = layer.FindNode("Math Modifier");
    node.AddInput(mathNode, "Position X");
}