Eyeon:Script/Reference/Applications/Fusion/Classes/Operator/ConnectInput
From VFXPedia
< Eyeon:Script | Reference | Applications | Fusion | Classes | Operator
Contents |
Tool : ConnectInput
Summary
Connects or disconnects an Input, by ID. The input can be connected to an Output or an Operator, or to nil, which disconnects the input.
If the target given is an Operator, the Input will be connected to that Operator's main Output.
Arguments
boolean = ConnectInput(string input, object target)
- input
- The ID of an Input to connect
- target
- An Output or Operator object to connect the input to, or nil to disconnect
Returns
Returns true if the function succeeded.
Example
-- Find a Loader, and connect it to our Foreground input ldr = comp:FindToolByID("Loader") if ldr then tool:ConnectInput("Foreground", ldr) end
Requirements
- eyeonScript 5.0
- Fusion 5.1
See Also
Tips for ConnectInput (edit)
EyeonTips:Script/Reference/Applications/Fusion/Classes/Operator/ConnectInput