< Previous | Contents | Next >
Connections
AnInputcanbeconnectedtoanOutputviatheinp:ConnectTo(output) method.Itcanbedisconnected via inp:ConnectTo(). To get the connected output of an Input use inp:GetConnectedOutput(). Similarly you can get all connected Inputs of an Output with outp:GetConnectedOutputs(). Please note the plural form of the latter command.
![]()

Note
By design, one Output might be connected to multiple Inputs, but one Input can only have one incoming Output connection.
Please note that both Output and Input share the same parent class called Link, which allows them to access GetTool() to refer to the Tool containing the Input or Output.
Inputs can be connected directly to their underlying DataType but they can also be connected to other inputs of the same DataType, a modifier or animation. As all of this internally is implemented as connection, once the upstream Input needs to be evaluated, all of it connected downstream outputs get queried. This allows for a complex connection scheme with many cross dependencies.