OpenMaya.MUserData Class Reference

Class Description

Virtual base class for user data caching.
+ Inheritance diagram for OpenMaya.MUserData:

Public Member Functions

__init__ ()
 
deleteAfterUse ()
 
setDeleteAfterUse ()
 

Constructor & Destructor Documentation

OpenMaya.MUserData.__init__ ( )
x.__init__(...) initializes x; see help(type(x)) for signature

Member Function Documentation

OpenMaya.MUserData.deleteAfterUse ( )
deleteAfterUse() -> bool

Returns whether or not this user data should be deleted immediately after use instead of being
maintained until the internal owning object is deleted.
OpenMaya.MUserData.setDeleteAfterUse ( )
setDeleteAfterUse(bool) -> self

Sets whether or not this user data should be deleted immediately after use instead of being
maintained until the internal owning object is deleted.

Setting this to false may allow the data to be reused in some situations.
For example, if the MUserData returned by an MPxDrawOverride instance's prepareForDraw() method has
its delete-after-use set to false, then Maya will retain the data between draws of that object,
passing it back to the instance for reuse on subsequent draws.