Base class that provides support for plugs to the superclass.
It will create some simple tracking attriubtes required for the plug system
to work
Nodes can compute values of their plugs if these do not have a cache.
Nodes are identified by an ID - the default graph implementation though will
be okay with just having instances.
It is also being used for string representations of this node
Inherited from interface.iDuplicatable :
copyTo ,
copyToOther ,
duplicate
Inherited from interface.Interface :
supports
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|
|
__init__(self,
*args,
**kwargs)
We require a directed graph to track the connectivity between the plugs. |
source code
|
|
|
__del__(self)
Remove ourselves from the graph and delete our connections |
source code
|
|
|
|
|
|
|
copyFrom(self,
other,
add_to_graph=True)
Just take the graph from other, but do not ( never ) duplicate it |
source code
|
|
|
compute(self,
plug,
mode)
Called whenever a plug needs computation as the value its value is not
cached or marked dirty ( as one of the inputs changed ) |
source code
|
|
|
setID(self,
newID)
Set id of this node to newiD
:return: previously assigned id |
source code
|
|
|
|
|
|
|
|
|
clearCache(self)
Clear the cache of all plugs on this node - this basically forces it
to recompute the next time an output plug is being queried |
source code
|
|
|
plugs(self,
predicate=<function <lambda> at 0x2f59cf8>)
Returns:
list of dynamic plugs as defined on this node - they are usually retrieved
on class level, but may be overridden on instance level |
source code
|
|
|
|
|
|
|
connections(self,
inpt,
output)
Returns:
Tuples of input shells defining a connection of the given type from
tuple( InputNodeOuptutShell, OurNodeInputShell ) for input connections and
tuple( OurNodeOuptutShell, OutputNodeInputShell ) |
source code
|
|