Attaches the function set to the specified plugin object, which is provided as a parameter to the plugin's initializePlugin() and uninitializePlugin() functions, and specifies an optional vendor name, plugin version string and minimal required Maya apiVersion (which is currently ignored).
Constructor & Destructor Documentation
OpenMaya.MFnPlugin.__init__
(
)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Register a new command with Maya. createCmdFunc is a Python callable which takes no arguments and returns a new instance of the MPxCommand-derived class. createSyntaxFunc is a Python callable which takes no arguments and returns an MSyntax object initialized with the command's syntax.
OpenMaya.MFnPlugin.registerContextCommand
(
)
Register a new context command with Maya. Once registered, the context
can be used to create a new tool that can be used in a manner
identical to built-in Maya tools.
OpenMaya.MFnPlugin.registerData
(
)
Register a new data type with Maya.
OpenMaya.MFnPlugin.registerDragAndDropBehavior
(
)
Register a new drag and drop behavior with Maya.
Once registered, the new behavior can be used to finish connections between node drag and drops from the hyperGraph/hyperShade to other nodes or Maya UI.
OpenMaya.MFnPlugin.registerNode
(
)
Register a new dependency node with Maya.
OpenMaya.MFnPlugin.registerShape
(
)
Register a new user defined shape node with Maya.
To deregister the shape node use the MFnPlugin.deregisterNode().
OpenMaya.MFnPlugin.setName
(
)
Set the plug-in's name.
Signature:
setName(name, makeUnique=True)
Parameters:
name - string
makeUnique - bool
Returns:
Reference to self.
Description:
Set the plug-in's name. If another plug-in is already using name and makeUnique is True then Maya will choose a unique name for the plug-in, otherwise a RuntimeError will be raised.