Go to: Synopsis. Return value. Related. Flags. Python examples.
unknownNode([plugin=boolean], [realClassName=boolean], [realClassTag=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
unknownNode is undoable, queryable, and NOT editable.
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).string[] | in query mode |
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
plugin(p)
|
boolean
|
|||
|
||||
realClassName(rcn)
|
boolean
|
|||
|
||||
realClassTag(rct)
|
boolean
|
|||
|
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 # query the unknown node's real class name # cmds.unknownNode( 'testIterator1', q=True, rcn=True ) # Result: testIterator # # query the unknown node's class IFF tag # if the node was loaded from a Maya ASCII file # cmds.unknownNode( 'testIterator1', q=True, rct=True ) # Warning: line 1: No class tag available for node 'testIterator1'. # # Result: 0 # # if the node was loaded from a Maya Binary file # cmds.unknownNode( 'testIterator1', q=True, rct=True ) # Result: 10 # # query the plug-in that defined the unknown node # cmds.unknownNode( 'testIterator1', q=True, p=True ) # Result: testIteratorNode #