pymel.core.system.unknownNode

unknownNode(*args, **kwargs)

Allows querying of the data stored for unknown nodes (nodes that are defined by a plug-in that Maya could not load when loading a scene file).

Flags:

Long Name / Short Name Argument Types Properties
plugin / p bool ../../../_images/query.gif
  In query mode return the name of the plug-in from which the unknown node originated. If no plug-in then the empty string is returned.
realClassName / rcn bool ../../../_images/query.gif
  Return the real class name of the node.
realClassTag / rct bool ../../../_images/query.gif
  Return the real class IFF tag of the node. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.unknownNode

Example:

::

import pymel.core as pm

# query the unknown node’s real class name # pm.unknownNode( ‘testIterator1’, q=True, rcn=True ) testIterator

# query the unknown node’s class IFF tag # if the node was loaded from a Maya ASCII file # pm.unknownNode( ‘testIterator1’, q=True, rct=True ) # Warning: line 1: No class tag available for node ‘testIterator1’. # 0

# if the node was loaded from a Maya Binary file # pm.unknownNode( ‘testIterator1’, q=True, rct=True ) 10

# query the plug-in that defined the unknown node # pm.unknownNode( ‘testIterator1’, q=True, p=True ) testIteratorNode