None.
Name | Parameters | Returns | Description |
---|---|---|---|
Available in Maya 2012 HotFix 1: | |||
TBA |
Signature | Parameters | Description |
---|---|---|
Available in Maya 2012 Gold: | ||
MFnPlugin() | Default constructor. Returns a new MFnPlugin function set with no Maya object attached. | |
MFnPlugin(plugin, vendor='Unknown', version='Unknown', apiVersion='Any') | plugin - MObject
vendor - string version - string apiVersion - string |
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). |
None.
Signature | Parameters | Returns | Description |
---|---|---|---|
Available in Maya 2012 Gold: | |||
apiVersion() | string | Return the API version required by the plug-in. | |
deregisterCommand(cmdName) | cmdName - string | Reference to self. | Deregister a user defined command from Maya. |
loadPath() | string | Return the full path name of the file from which the plug-in was loaded. | |
name() | string | Return the plug-in's name. | |
registerCommand(cmdName, createCmdFunc, createSyntaxFunc=None) | cmdName - string
createCmdFunc - Python callable createSyntaxFunc - Python callable |
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. | |
setName(name, makeUnique=True) | name - string
makeUnique - bool |
Reference to self. | 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. |
vendor() | string | Return the plug-in's vendor string. | |
Available in Maya 2012 HotFix 1: | |||
TBA |
Name | Type | Access | Description |
---|---|---|---|
Available in Maya 2012 Gold: | |||
version | string | RW | Plug-in version string. |
Available in Maya 2012 HotFix 1: | |||
TBA |
None.
None.
None.
© 2011 Autodesk, Inc. All rights reserved.