This command sets static data on the specified node type. This will affect the class of node type as a whole. The argument passed may be the name of the node type or the node type tag. Node type tags may be found using the objectType command.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
display (dsp) | bool | ||
|
|||
threadSafe (ts) | bool | ||
Sets whether the node type will evaluate in parallel when using the parallel DG evaluation option in Viewport 2.0. In query mode returns true if the node type will evaluate in parallel when using the parallel DG evaluation option in Viewport 2.0.Flag can appear in Create mode of commandFlag 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
import maya.cmds as cmds
# don't display unit conversion nodes
pm.setNodeTypeFlag( pm.objectType(tagFromType='unitConversion'), display=False )
# Result: True #
pm.setNodeTypeFlag( 'mesh', threadSafe=True )
# Result: True #
pm.setNodeTypeFlag( 'mesh', q='true', threadSafe=True )
// Returns 1