Python API 2.0 Reference
|
Public Member Functions | |
def | __init__ () |
def | deleteAfterUse () |
def | setDeleteAfterUse () |
Static Public Member Functions | |
def | __new__ () |
Virtual base class for user data caching. MUserData( deleteAfterUse=False, legacy=True ) * deleteAfterUse (bool) - Enabled if user data should be deleted immediately after use. DEPRECATED in 2022. * legacy (bool) - Enabled if legacy constructor arguments are used. DEPRECATED in 2022.
def OpenMaya.MUserData.__init__ | ( | ) |
Initialize self. See help(type(self)) for accurate signature.
|
static |
Create and return a new object. See help(type) for accurate signature.
def 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. DEPRECATED in 2022, deleteAfterUse is deprecated.
def 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. DEPRECATED in 2022, deleteAfterUse is deprecated.