Go to: Synopsis. Return value. Flags. Python examples.
listNodeTypes(
string
, [exclude=string])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
listNodeTypes is undoable, NOT queryable, and NOT editable.
Lists dependency node types satisfying a specified classification string.See the 'getClassification' command for a list of the standard classification strings.
string[] | The type names of all node types in the system that satisfy the given classification string. |
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
exclude(ex)
|
string
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
import maya.cmds as cmds # List all shader types in the system cmds.listNodeTypes( 'shader' ) # List all 2D textures that are also shaders cmds.listNodeTypes( 'texture/2D:shader' ) # List all volume shading nodes that are neither utility nodes nor particle nodes cmds.listNodeTypes( 'shader/volume', ex='shader/volume/utility:shader/volume/particle' )