Go to: Synopsis. Return value. Related. Flags. Python examples.
unknownPlugin([dataTypes=boolean], [list=boolean], [nodeTypes=boolean], [remove=boolean], [version=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
unknownPlugin is undoable, queryable, and NOT editable.
Allows querying of the unknown plug-ins used by the scene,
and provides a means to remove them.
In query mode, return type is based on queried flag.
requires, unknownNode
dataTypes, list, nodeTypes, remove, version
Long name (short name) |
Argument types |
Properties |
|
dataTypes(dt)
|
boolean
|
|
|
Returns the data types associated with the given unknown plug-in.
This will always be empty for pre-Maya 2014 files.
|
|
list(l)
|
boolean
|
|
|
Lists the unknown plug-ins in the scene.
|
|
nodeTypes(nt)
|
boolean
|
|
|
Returns the node types associated with the given unknown plug-in.
This will always be empty for pre-Maya 2014 files.
|
|
remove(r)
|
boolean
|
|
|
Removes the given unknown plug-in from the scene.
For Maya 2014 files and onwards, this will fail if node
or data types defined by the plug-in are still in use.
|
|
version(v)
|
boolean
|
|
|
Returns the version string of the given unknown plug-in.
|
|
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can have multiple arguments, passed either as a tuple or a list.
|
import maya.cmds as cmds
# list the unknown plug-ins
#
cmds.unknownPlugin( q=True, l=True )
# Result: foo #
# query the version of the unknown plug-in
#
cmds.unknownPlugin( "foo", q=True, v=True )
# Result: 1.0 #
# attempt to remove the unknown plug-in
#
cmds.unknownPlugin( "foo", r=True )