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

Class Data

source code

OpenMaya.MObject --+
                   |
                  Data

Represents an data in general - this is the base class Use this general class to create data wrap objects - it will return a class of the respective type
Nested Classes [hide private]
  _base_cls_
Represents an data in general - this is the base class Use this general class to create data wrap objects - it will return a class of the respective type
Instance Methods [hide private]
 
__new__(cls, *args, **kwargs)
Constructor for MObject derived types which only differ in a few parameters.
source code
Class Methods [hide private]
 
create(cls, *args, **kwargs)
Returns: A new instance of data wrapped in the desired Data type
source code
Class Variables [hide private]
  __metaclass__ = MetaClassCreatorNodes
  _mfn_suffix_ = 'Data'
Method Details [hide private]

__new__(cls, *args, **kwargs)

source code 

Constructor for MObject derived types which only differ in a few parameters. Requires _base_cls_ and _mfn_suffix_ to be set on the respective class

return an attribute class of the respective type for given MObject

Parameters:
  • args - arg[0] is attribute's MObject to be wrapped.

Note: Custom constructors are not possible as __init__ is automatically called afterwards - MObject does not support anything but no args or another MObject.

create(cls, *args, **kwargs)
Class Method

source code 
Returns:
A new instance of data wrapped in the desired Data type

Note: specialize this method in derived types !