Go to: Synopsis. Return value. Flags. MEL examples.
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.
boolean | Did the command succeed? |
In query mode, return type is based on queried flag.
display, threadSafe
Long name (short name) |
Argument types |
Properties |
|
-display(-dsp)
|
boolean
|
|
|
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.
Query mode to obtain the value of the display flag.
|
|
-threadSafe(-ts)
|
boolean
|
|
|
This flag is obsolete. Has no effect.
|
|
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.
|
// don't display unit conversion nodes
setNodeTypeFlag -display false `objectType -tagFromType unitConversion`;
// Returns 1
// don't display legacy render layers
setNodeTypeFlag -display false "renderLayer";
// Returns 1
// ask for the value of the display flag of unit conversion nodes
setNodeTypeFlag -q -display `objectType -tagFromType unitConversion`;
// Returns 0
// ask for the value of the display flag of legacy render layers nodes
setNodeTypeFlag -q -display "renderLayer";
// Returns 0