Go to: Synopsis. Return value. Related. Flags. Python examples.

Synopsis

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.

Return value

string[]in query mode

In query mode, return type is based on queried flag.

Related

requires, unknownNode

Flags

dataTypes, list, nodeTypes, remove, version
Long name (short name) Argument types Properties
dataTypes(dt) boolean query
Returns the data types associated with the given unknown plug-in. This will always be empty for pre-Maya 2014 files.
list(l) boolean query
Lists the unknown plug-ins in the scene.
nodeTypes(nt) boolean query
Returns the node types associated with the given unknown plug-in. This will always be empty for pre-Maya 2014 files.
remove(r) boolean create
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 query
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.

Python examples

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 )