Connections
ReferencesProvides access to a list of parameters as well as static methods for connecting and disconnecting parameters. The only way for external code to create or remove connections is via the static methods on this class.
Constructors
Properties
Indexers
Methods
Connect
#Create a connection between a source and a target parameter.
Returns: True if connection was created.
Connect
#Create a connection between a source and a target parameter.
Returns: True if connection was created.
CopyAllInputs
#Copy all incoming wires from one parameter to another.
Returns: Number of wires successfully copied.
CopyAllOutputs
#Copy all outgoing wires from one parameter to another.
Returns: Number of wires successfully copied.
CutOutMiddleMan
#Attempt to cut out the middle man from a triplet of connected parameters.
public static bool CutOutMiddleMan()
left,
Source parameter.
middle,
Middleman.
right,
Target parameter.
undo = null
Undo actions.
Disconnect
#Remove the connection between a source and a target parameter.
Returns: True if connection was removed.
DisconnectAllInputs
#Remove all sources from a specific parameter.
Returns: True if a change was made.
DisconnectAllInputsExcept
#Remove all sources but one from a specific parameter.
Returns: True if a change was made.
DisconnectAllInputsExcept
#Remove all unmarked sources from a specific parameter.
Returns: True if a change was made.
DisconnectAllOutputs
#Remove all targets from a specific parameter.
Returns: True if a change was made.
DisconnectAllOutputsExcept
#Remove all targets but one from a specific parameter.
Returns: True if a change was made.
DisconnectAllOutputsExcept
#Remove all unmarked targets from a specific parameter.
Returns: True if a change was made.
IndexOf
#Find the index of a specific parameter within this list.
Returns: Index of parameter or -1 if the parameter was not found.
MigrateAllInputs
#Migrate all incoming wires from one parameter to another.
Returns: Number of wires successfully migrated.
MigrateAllOutputs
#Migrate all outgoing wires from one parameter to another.
Returns: Number of wires successfully migrated.
Mimic
#Duplicate another set of connections. This is a low level method which should only be used with utmost care. If at all possible consider the static methods on this class for creating, removing, and copying connections.
Mimic
#Duplicate another set of connections. This is a low level method which should only be used with utmost care. If at all possible consider the static methods on this class for creating, removing, and copying connections.
ReplaceSource
#Replace one source with another.
public static bool ReplaceSource()
oldSource,
Source to disconnect from.
newSource,
Source to connect to.
target,
Target to affect.
undo = null
Optional undo list.
ReplaceTarget
#Replace one target with another.
public static bool ReplaceTarget()
source,
Source to affect.
oldTarget,
Target to disconnect.
newTarget,
Target to connect.
undo = null
Optional undo list.