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

Synopsis

shadingNode [-asLight] [-asPostProcess] [-asRendering] [-asShader] [-asTexture] [-asUtility] [-name string] [-parent string] node

shadingNode is undoable, NOT queryable, and NOT editable.

The shadingNode command classifies any DG node as a shader, texture light, post process, or utility so that it can be properly organized in the multi-lister. Recall that any DG node can be used a part of a a shader, texture or light - regardless of how it is classified by this. command. These classifications are provided for convenience in the UI.

Return value

string(the name of the new node)

Flags

asLight, asPostProcess, asRendering, asShader, asTexture, asUtility, name, parent
Long name (short name) Argument types Properties
-name(-n) string create
Sets the name of the newly-created node.
-parent(-p) string create
Specifies the parent in the DAG under which the new node belongs.
-asShader(-as) create
classify the current DG node as a shader
-asTexture(-at) create
classify the current DG node as a texture
-asLight(-al) create
classify the current DG node as a light
-asPostProcess(-app) create
classify the current DG node as a post process
-asUtility(-au) create
classify the current DG node as a utility
-asRendering(-ar) create
classify the current DG node as a rendering node

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

string $myShader;
$myShader = `shadingNode -asShader anisotropic`;