Show frames
Go to: Synopsis. Return value. Flags. MEL examples.
shadingNode [-asLight] [-asPostProcess] [-asShader] [-asTexture] [-asUtility] [-name string] [-parent string] [-shared]
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.
string | (the name of the new node) |
asLight, asPostProcess, asShader, asTexture, asUtility, name, parent, shared
Long name (short name) |
Argument types |
Properties |
-name(-n)
|
string
|
|
|
Sets the name of the newly-created node.
|
|
-parent(-p)
|
string
|
|
|
Specifies the parent in the DAG under which the new node belongs.
|
|
-shared(-s)
|
|
|
|
This node is shared across multiple files, so only create it if
it does not already exist.
|
|
-asShader(-as)
|
|
|
|
classify the current DG node as a shader
|
|
-asTexture(-at)
|
|
|
|
classify the current DG node as a texture
|
|
-asLight(-al)
|
|
|
|
classify the current DG node as a light
|
|
-asPostProcess(-app)
|
|
|
|
classify the current DG node as a post process
|
|
-asUtility(-au)
|
|
|
|
classify the current DG node as a utility
|
|
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.
|
string $myShader;
$myShader = `shadingNode -asShader anisotropic`;