Commands for shader editing in the hypergraph
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
assign (a) | unicode | ||
Assign the specified shader node to renderable objects on the active list. The node can either be a shading group or the shader node attached to the shading group. |
|||
clearWorkArea (cwa) | bool | ||
|
|||
collapse (clp) | unicode | ||
|
|||
createNode (rcn) | unicode | ||
Create a node of the specified type. This is called when a new rendering node is created using drag and drop from the image browser or from the RMB context sensitve menu on nodes in the Visor Create folders. |
|||
dependGraphArea (dg) | bool | ||
|
|||
downStream (ds) | bool | ||
|
|||
duplicate (dup) | bool | ||
|
|||
fixRenderSize (fix) | bool | ||
|
|||
incremental (inc) | bool | ||
|
|||
listDownstreamNodes (ldn) | PyNode | ||
|
|||
listDownstreamShaderNodes (lds) | PyNode | ||
List all the downstream shader nodes from the specified nodes.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
listUpstreamNodes (lun) | PyNode | ||
|
|||
name (n) | unicode | ||
|
|||
networks (net) | bool | ||
|
|||
noSGShapes (nsg) | bool | ||
|
|||
noShapes (ns) | bool | ||
|
|||
noTransforms (nt) | bool | ||
|
|||
objects (o) | unicode | ||
Select the objects which are attached to the specified shader node. The shader node can be either the shading group or the shader attached to the shading group. When this flag’s argument is the empty string, we will use the currently selected shder node as the input. |
|||
renderCreateAndDrop (rcd) | unicode | ||
|
|||
reset (rst) | bool | ||
|
|||
resetGraph (rsg) | bool | ||
|
|||
resetSwatch (rss) | bool | ||
|
|||
setAllowsRegraphing (sar) | bool | ||
|
|||
setWorkArea (swa) | unicode | ||
|
|||
shaderNetwork (sn) | unicode | ||
Show the shader network for the specified material node. If the materials shading group has a displacement or volume map these will be shown. If not then the shading group wont be shown. |
|||
shaderNetworks (sns) | bool | ||
|
|||
shaderNetworksSelectMaterialNodes (smn) | bool | ||
|
|||
snapShot (snp) | bool | ||
|
|||
uncollapse (ucl) | unicode | ||
|
|||
upStream (ups) | bool | ||
|
|||
userDefinedLayout (udl) | bool | ||
|
|||
workAreaAddCmd (waa) | unicode | ||
|
|||
workAreaDeleteCmd (wad) | unicode | ||
|
|||
workAreaSelectCmd (was) | unicode | ||
|
Derived from mel command maya.cmds.hyperShade
Example:
import pymel.core as pm
pm.sphere()
# Result: [nt.Transform(u'nurbsSphere1'), nt.MakeNurbSphere(u'makeNurbSphere1')] #
pm.cone()
# Result: [nt.Transform(u'nurbsCone1'), nt.MakeNurbCone(u'makeNurbCone1')] #
myBlinn = pm.shadingNode('blinn', asShader=True)
pm.select( 'nurbsSphere1' )
pm.hyperShade( assign=myBlinn )
pm.select( cl=True )
pm.hyperShade( objects=myBlinn )
blinn = pm.createNode('blinn')
pm.select( 'lambert1', blinn )
pm.hyperShade( objects='' )