Package mrv :: Package maya :: Package nt :: Module base :: Class NodeFromObj
[hide private]
[frames] | no frames]

Class NodeFromObj

source code

object --+
         |
        NodeFromObj

Virtual Constructor, producing nodes as the Node does, but it will only accept MObjects or dagpaths which are expected to be valid. As no additional checking is performed, it might be more unsafe to use, but will be faster as it does not perform any runtime checks

It duplicates code from _checkedInstanceCreation and _checkedInstanceCreationDagPathSupport to squeeze out the last tiny bit of performance as it can make quite a few more assumptions and reduces method calls.


Notes:
Instance Methods [hide private]
a new object with type S, a subtype of T
__new__(cls, mobject_or_mdagpath) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(cls, mobject_or_mdagpath)

source code 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__
(inherited documentation)