Go to: Synopsis. Flags. Return value. Python examples.
listNodeTypes(
classificationString
, [exclude=string])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
listNodeTypes is undoable, queryable, and editable.
| 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 mental ray nodes that are not shaders cmds.listNodeTypes( 'rendernode/mentalray', ex='shader' )