Go to: Synopsis. Return value. Keywords. Flags. Python examples.

Synopsis

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.

Return value

booleanSuccess or Failure

In query mode, return type is based on queried flag.

Keywords

solo, material, rendering, shaders

Flags

attr, last, node, unsolo
Long name (short name) Argument types Properties
attr(a) string createquery
The attr flag specifies a node attribute to solo.
last(l) boolean createquery
Whether to solo the last material node and attribute.
node(n) string createquery
The node flag specifies the node to solo.
unsolo(us) boolean createquery
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.

Python examples

import maya.cmds as cmds

cmds.soloMaterial( node="file1", attr="outAlpha" )
cmds.soloMaterial( unsolo=True )
cmds.soloMaterial( last=True )