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

Class PluginData

source code

OpenMaya.MObject --+    
                   |    
                Data --+
                       |
                      PluginData

Wraps plugin data as received by a plug. If plugin's registered their data types and tracking dictionaries using the registerPluginDataTrackingDict, the original self pointer can easily be retrieved using this classes interface
Nested Classes [hide private]

Inherited from Data: _base_cls_

Instance Methods [hide private]
 
data(self)
Returns: python data wrapped by this plugin data object
source code

Inherited from Data: __new__

Class Methods [hide private]

Inherited from Data: create

Class Variables [hide private]

Inherited from Data: __metaclass__, _mfn_suffix_

Method Details [hide private]

data(self)

source code 
Returns:
python data wrapped by this plugin data object
Raises:
  • RuntimeError - if the data object's id is unknown to this class
Notes:
  • the python data should be made such that it can be changed using the reference we return - otherwise it will be read-only as it is just a copy !
  • the data retrieved by this method cannot be used in plug.msetMObject(data) as it is ordinary python data, not an mobject