Patch applying mrv specific functionality to the MPlug. These methods will be
available through methods with the 'm' prefix.
Other methods are overridden to allow more pythonic usage of the MPlug class
if and only if it is not specific to mrv.
Additionally it provides aliases for all MPlug methods that are getters, but
don't start with a 'get'.
|
|
|
length(self)
Returns:
number of physical elements in the array, but only if they are
not connected. |
source code
|
|
|
|
|
|
|
__eq__(self,
other)
Compare plugs,handle elements correctly |
source code
|
|
|
|
|
|
|
mchildren(self,
predicate=lambda x: True)
Returns:
list of intermediate child plugs, [ plug1 , plug2 ] |
source code
|
|
|
|
|
msubPlugs(self,
predicate=lambda x: True)
Returns:
list of intermediate sub-plugs that are either child plugs or element plugs. |
source code
|
|
|
_mhandleAttrSet(self,
state,
getfunc,
setfunc)
Generic attribute handling |
source code
|
|
|
|
|
|
|
msetCaching(self,
state)
if True, the plug's value will be cached, preventing unnecessary computations |
source code
|
|
|
msetChannelBox(self,
state)
if True, the plug will be visible in the channelbox, even though it might not
be keyable or viceversa |
source code
|
|
|
|
|
mconnectToArray(self,
arrayplug,
force=True,
exclusive_connection=False)
Connect self an element of the given arrayplug. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
moutput(self)
Returns:
first plug that has this plug as source of a connection, or null plug
if no such plug exists. |
source code
|
|
|
minput(self)
Returns:
plug being the source of a connection to this plug or a null plug
if no such plug exists |
source code
|
|
|
|
|
miterGraph(self,
*args,
**kwargs)
Returns:
graph iterator with self as root, args and kwargs are passed to it.iterGraph. |
source code
|
|
|
miterInputGraph(self,
*args,
**kwargs)
Returns:
iterator over the graph starting at this plug in input(upstream) direction. |
source code
|
|
|
miterOutputGraph(self,
*args,
**kwargs)
Returns:
iterator over the graph starting at this plug in output(downstream) direction. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mict(self,
destplug)
Returns:
True if this plug is connected to destination plug ( in that order ) |
source code
|
|
|
mdc(self,
other)
Disconnect this plug from other plug if they are connected |
source code
|
|
|
|
|
mwa(self)
Returns:
Attribute instance of our underlying attribute |
source code
|
|
|
pa = api.MPlugArray()
|
|
__str__ = api.MPlug.name
|
|
msetBool = _mplug_createUndoSetFunc("Bool")
|
|
msetChar = _mplug_createUndoSetFunc("Char")
|
|
msetShort = _mplug_createUndoSetFunc("Short")
|
|
msetInt = _mplug_createUndoSetFunc("Int")
|
|
msetFloat = _mplug_createUndoSetFunc("Float")
|
|
msetDouble = _mplug_createUndoSetFunc("Double")
|
|
msetString = _mplug_createUndoSetFunc("String")
|
|
msetMAngle = _mplug_createUndoSetFunc("MAngle")
|
|
msetMDistance = _mplug_createUndoSetFunc("MDistance")
|
|
msetMTime = _mplug_createUndoSetFunc("MTime")
|
|
msetMObject = _mplug_createUndoSetFunc("MObject")
|
|
mctf = lambda self, other:
|
|
mct = lambda self, other:
|
|
mhc = lambda lhs, rhs:
|