Go to: Synopsis. Return value. Related. Flags. MEL examples.
shadingNode [-asLight] [-asPostProcess] [-asRendering] [-asShader] [-asTexture] [-asUtility] [-isColorManaged] [-name string] [-parent string] [-shared] [-skipSelect]
node
string
shadingNode is undoable, NOT queryable, and NOT editable.
This command creates a new node in the dependency graph of the specified type. 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. |
string | (the name of the new node) |
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
-asLight(-al)
|
|
|||
|
||||
-asPostProcess(-app)
|
|
|||
|
||||
-asRendering(-ar)
|
|
|||
|
||||
-asShader(-as)
|
|
|||
|
||||
-asTexture(-at)
|
|
|||
|
||||
-asUtility(-au)
|
|
|||
|
||||
-isColorManaged(-icm)
|
|
|||
|
||||
-name(-n)
|
string
|
|||
|
||||
-parent(-p)
|
string
|
|||
|
||||
-shared(-s)
|
|
|||
|
||||
-skipSelect(-ss)
|
|
|||
|
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. |
createNode "transform" -n "transform1"; createNode "nurbsSurface" -n "surface1" -p transform1; createNode "camera" -shared -n "top"; // This transform will be selected when created createNode "transform" -n "selectedTransform"; // This will create a new transform node, but 'selectedTransform' // will still be selected. createNode -ss "transform"; // Create node under new namespace createNode "transform" -n "newNS:transform1"; string $myShader; $myShader = `shadingNode -asShader anisotropic`;