pymel.core.windows.setNodeTypeFlag

static windows.setNodeTypeFlag(*args, **kwargs)

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

Flags:
Long name (short name) Argument Types Properties
display (dsp) bool, int ../../../_images/create.gif
 

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 have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.setNodeTypeFlag

Example:

import pymel.core as pm

# don't display unit conversion nodes
pm.setNodeTypeFlag( display=('false', pm.objectType(tagFromType='unitConversion')) )
# Result: True #

Previous topic

pymel.core.windows.setMenuMode

Next topic

pymel.core.windows.setParent

Core

Core Modules

Other Modules

This Page