pymel.core.windows.setNodeTypeFlag

setNodeTypeFlag(*args, **kwargs)

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.

Flags:
Long name (short name) Argument Types Properties
display (dsp) bool ../../../_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.
threadSafe (ts) bool ../../../_images/create.gif ../../../_images/query.gif
 

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

Previous topic

pymel.core.windows.setMenuMode

Next topic

pymel.core.windows.setParent

Core

Core Modules

Other Modules

This Page