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

Synopsis

setNodeTypeFlag [-display boolean] [-threadSafe boolean] [string]

setNodeTypeFlag is undoable, queryable, and NOT editable.

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.

Return value

int

In query mode, return type is based on queried flag.

Flags

display, threadSafe
Long name (short name) Argument types Properties
-display(-dsp) boolean 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.
-threadSafe(-ts) boolean createquery
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 command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command.

MEL examples

// don't display unit conversion nodes
setNodeTypeFlag -display false `objectType -tagFromType unitConversion`;
setNodeTypeFlag -threadSafe true mesh;
setNodeTypeFlag -q -ts mesh;
// Returns 1