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

Synopsis

setNodeTypeFlag([display=[boolean, int]])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

setNodeTypeFlag is undoable, NOT queryable, and NOT editable.

This command sets static data on the specified node type tag. This will affect the class of node type as a whole.

Return value

int

Flags

display
Long name (short name) Argument types Properties
display(dsp) [boolean, int] create
Sets whether the node type will appear in the UI or not. Setting display to false will cause the node type to not appear in the UI. The first argument determines whether display is true are false and the second argument is the node type tag. The node type tag can be found using the objectType cmd.

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

# don't display unit conversion nodes
cmds.setNodeTypeFlag( display=('false', cmds.objectType(tagFromType='unitConversion')) )