Go to: Synopsis. Return value. Keywords. Flags. Python examples.
soloMaterial([attr=string], [last=boolean], [node=string], [unsolo=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
soloMaterial is undoable, queryable, and NOT editable.
Shows a preview of a specified material node output attribute.
boolean | Success or Failure |
In query mode, return type is based on queried flag.
solo, material, rendering, shaders
attr, last, node, unsolo
Long name (short name) |
Argument types |
Properties |
attr(a)
|
string
|
|
|
The attr flag specifies a node attribute to solo.
|
|
last(l)
|
boolean
|
|
|
Whether to solo the last material node and attribute.
|
|
node(n)
|
string
|
|
|
The node flag specifies the node to solo.
|
|
unsolo(us)
|
boolean
|
|
|
Whether to remove soloing.
|
|
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 have multiple arguments, passed either as a tuple or a list.
|
import maya.cmds as cmds
cmds.soloMaterial( node="file1", attr="outAlpha" )
cmds.soloMaterial( unsolo=True )
cmds.soloMaterial( last=True )