PlugΒΆ
class Plug
A Plug is an attribute of a node. The plug can be "readable" only or "readable and writable".
Hierarchy
Children classes : class BakePlug , class ExpressionInput , class ExpressionOutput , class MeshPlug , class UserPlug
Members
| adddependencies | (
|
Connect outputs plug to this plug |
| adddependency | (
|
Connect an output plug to this plug |
| connect | (
|
Connect an output plug to this plug |
| delete | ( ) | Delete this plug. |
| disconnect | (
|
Disconnect an output plug from this plug |
| disconnectall | ( ) | Disconnect a plug from all its connections |
| disconnectcontrol | ( ) | Disconnect the plug from its input and delete the input if it is a control and it is no longer connected |
| get | ( ) | Returns the value of a plug. The plug must be readable. |
| getbackdependencies | ( ) | Retrieve the list of plugs this plug has dependencies on, or nil if none |
| getdependencies | ( ) | Retrieve the list of plugs this plug is dependent on, or nil if none |
| getflag | (
|
Get a specific plug flag. |
| getflags | ( ) | Gets the plug flags. |
| getinmotion | (
|
Return an array of values of this plug evaluated in time. |
| getinput | ( ) | Returns the input connection |
| getname | ( ) | Returns the name of the plug in its parent |
| getnode | ( ) | Returns the parent node of the plug |
| getoutputs | ( ) | Returns the list of output connections |
| getpath | ( ) | Returns the path of the plug |
| getraw | ( ) | Returns the raw value of a plug, regardless of its invalidation state. |
| gettype | ( ) | Get the type associated to the plug |
| hasbackdependencies | ( ) | Tells if some plugs are dependent on this plug |
| hasdependencies | ( ) | Tells if the plug is dependent on other plugs |
| hasoutputs | ( ) | Tells if the plug is connected in output to some other plugs |
| isanimatable | ( ) | Tells if the plug value can be animated |
| isconnected | (
|
Test if a plug is connected to another |
| isdependent | (
|
Returns true if this plug is dependent on other |
| isrefoverriden | ( ) | Tells if the plug state is overriden from its reference state |
| isvalid | ( ) | Returns the validity status of the plug |
| removealldependencies | ( ) | Remove all input dependencies of this plug |
| removedependencies | (
|
Connect an output plug to this plug |
| removedependency | (
|
Connect an output plug to this plug |
| set | (
|
Set the value of a plug. The plug must be writable. |
| setflags | (
|
Sets the plug flags |
| setvalid | ( ) | Force the plug valid state, but the plug is not evaluated. |
| tostring | ( ) | Returns a human readble string of the plug's value |
| touch | ( ) | Invalidate this plug |
| validate | ( ) | Force the plug validation by evaluating the plug. |
Documentation
Connect outputs plug to this plug
... The list of plugs to connect to this plug
Connect an output plug to this plug
output The output to connect to this plug
Connect an output plug to this plug
output The output to connect to this plugsafe Is true, no error if the plug is already connected. In this case, replace the old connection by the new one. If false, raise an error if the plug is already connected.
Delete this plug.
Disconnect an output plug from this plug
output The output to connect to this plug
Disconnect a plug from all its connections
Disconnect the plug from its input and delete the input if it is a control and it is no longer connected
Returns the value of a plug. The plug must be readable.
Retrieve the list of plugs this plug has dependencies on, or nil if none
Retrieve the list of plugs this plug is dependent on, or nil if none
Get a specific plug flag.
flag the flag to retrieve
state The current state
Gets the plug flags.
- Plug.Dynamic: the plug is create dynamically, not within the node constructor
- Plug.NoSerial: the plug connection, dependencies and value are not written to file
- Plug.KeepOnCopy: the plug connection and dependencies to out of copy/paste space are written (for instance, when copy/pasting a primitive, the connection to the material is kept)
- Plug.RefReadOnly: the plug value and incoming connection/dependencies are kept untouched if the plug is read from a reference
flags
Return an array of values of this plug evaluated in time.
steps Number of motion steps wantedtime Base time at which we want the motion valuesstart Delta time from the base time for the first valuestop Delta time from the base time for the last value
Returns the input connection
result the connected input plug
Returns the name of the plug in its parent
Returns the parent node of the plug
Returns the list of output connections
result the connected output plugs or nil if no plug is connected
Returns the path of the plug
Returns the raw value of a plug, regardless of its invalidation state.
Get the type associated to the plug
Tells if some plugs are dependent on this plug
Tells if the plug is dependent on other plugs
Tells if the plug is connected in output to some other plugs
result True if the plug is connected in output
Tells if the plug value can be animated
Test if a plug is connected to another
output The output to test connection
result
Returns true if this plug is dependent on other
plug The plug to test dependency on
dependent True if this plug is dependent on plug
Tells if the plug state is overriden from its reference state
Returns the validity status of the plug
result
Remove all input dependencies of this plug
Connect an output plug to this plug
... The list of plugs to disconnect to this plug
Connect an output plug to this plug
output The output to connect to this plug
Set the value of a plug. The plug must be writable.
value The new value to put in the plug
Sets the plug flags
flags the flags to set.
Force the plug valid state, but the plug is not evaluated.
Returns a human readble string of the plug's value
result the string value
Invalidate this plug
Force the plug validation by evaluating the plug.