pymel.core.system.unknownPlugin

unknownPlugin(*args, **kwargs)

Allows querying of the unknown plug-ins used by the scene, and provides a means to remove them.

Flags:

Long Name / Short Name Argument Types Properties
dataTypes / dt bool ../../../_images/query.gif
  Returns the data types associated with the given unknown plug-in. This will always be empty for pre-Maya 2014 files.
list / l bool ../../../_images/query.gif
  Lists the unknown plug-ins in the scene.
nodeTypes / nt bool ../../../_images/query.gif
  Returns the node types associated with the given unknown plug-in. This will always be empty for pre-Maya 2014 files.
remove / r bool ../../../_images/create.gif
  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 bool ../../../_images/query.gif
  Returns the version string of the given unknown plug-in. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.unknownPlugin

Example:

::

import pymel.core as pm

# list the unknown plug-ins # pm.unknownPlugin( q=True, l=True )

# query the version of the unknown plug-in # pm.unknownPlugin( “foo”, q=True, v=True ) 1.0

# attempt to remove the unknown plug-in # pm.unknownPlugin( “foo”, r=True )