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

Class Attribute

source code

OpenMaya.MObject --+
                   |
                  Attribute

Represents an attribute in general - this is the base class Use this general class to create attribute wraps - it will return a class of the respective type
Nested Classes [hide private]
  _base_cls_
Represents an attribute in general - this is the base class Use this general class to create attribute wraps - 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, full_name, brief_name, *args, **kwargs)
Returns: A new Attribute
source code
Class Variables [hide private]
  __metaclass__ = MetaClassCreatorNodes
  _mfn_suffix_ = 'Attribute'
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, full_name, brief_name, *args, **kwargs)
Class Method

source code 
Parameters:
  • full_name - the long name of the attribute
  • brief_name - the brief name of the attribute
Returns:
A new Attribute
Notes:
  • all args and kwargs are passed to the respective function set instance
  • specialize this method in derived types if required