Go to: Synopsis. Return value. Keywords. Related. Flags. Python examples.
allNodeTypes([includeAbstract=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
allNodeTypes is NOT undoable, NOT queryable, and NOT editable.
This command returns a list containing the type names of every kind of creatable node registered with the system. Note that some node types are abstract and cannot be created. These will not show up on this list. (e.g. transform and polyShape both inherit from dagObject, but dagObject cannot be created directly so it will not appear on this list.)| string[] | List of node types |
| Long name (short name) | Argument types | Properties | ||
|---|---|---|---|---|
includeAbstract(ia)
|
boolean
|
|
||
|
||||
import maya.cmds as cmds cmds.allNodeTypes() # Result: [u'list', u'of', u'node', u'types'] # cmds.allNodeTypes(includeAbstract=True) # Result: [u'very (abstract)', u'long (abstract)', u'list', u'of', u'all (abstract)', u'node', u'types'] # # Trickier example using Python capabilities to get node types starting with 'l' [item for item in cmds.allNodeTypes(includeAbstract=True) if item[0].lower() == 'l'] # Result: [u'long (abstract)', u'list'] #