pymel.core.rendering.soloMaterial

soloMaterial(*args, **kwargs)

Shows a preview of a specified material node output attribute.

Flags:

Long Name / Short Name Argument Types Properties
attr / a unicode ../../../_images/create.gif ../../../_images/query.gif
  The attr flag specifies a node attribute to solo.
last / l bool ../../../_images/create.gif ../../../_images/query.gif
  Whether to solo the last material node and attribute.
node / n unicode ../../../_images/create.gif ../../../_images/query.gif
  The node flag specifies the node to solo.
unsolo / us bool ../../../_images/create.gif ../../../_images/query.gif
  Whether to remove soloing. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.soloMaterial

Example:

::

import pymel.core as pm

pm.soloMaterial( node=”file1”, attr=”outAlpha” ) pm.soloMaterial( unsolo=True ) pm.soloMaterial( last=True )