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

Synopsis

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.)

Return value

string[]List of node types

Keywords

debug, node, type, graph

Related

findType

Flags

includeAbstract
Long name (short name) Argument types Properties
includeAbstract(ia) boolean create
Show every node type, even the abstract ones which cannot be created via the 'createNode' command. These will have the suffix "(abstract)" appended to them in the list.

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

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']  #