pymel.core.nodetypes.LayeredShader

digraph inheritancebbef93fb0c { rankdir=TB; ranksep=0.15; nodesep=0.15; size="8.0, 12.0"; "DependNode" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="pymel.core.nodetypes.DependNode.html#pymel.core.nodetypes.DependNode",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "PyNode" -> "DependNode" [arrowsize=0.5,style="setlinewidth(0.5)"]; "LayeredShader" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="#pymel.core.nodetypes.LayeredShader",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "ShadingDependNode" -> "LayeredShader" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ProxyUnicode" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="../pymel.util.utilitytypes/pymel.util.utilitytypes.ProxyUnicode.html#pymel.util.utilitytypes.ProxyUnicode",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "PyNode" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="../pymel.core.general/pymel.core.general.PyNode.html#pymel.core.general.PyNode",style="setlinewidth(0.5)",tooltip="Abstract class that is base for all pymel nodes classes.",height=0.25,shape=box,fontsize=8]; "ProxyUnicode" -> "PyNode" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ShadingDependNode" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="pymel.core.nodetypes.ShadingDependNode.html#pymel.core.nodetypes.ShadingDependNode",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "DependNode" -> "ShadingDependNode" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

class LayeredShader(*args, **kwargs)
getColor(lIndex=0)

Retrieves the value of the “color” attribute of a shader node. This attribute represents the surface color of the shader.

Parameters:
lIndex : int

Index of the shader’s entry in the inputs attribute array element.

Return type:

Color

Derived from api method maya.OpenMaya.MFnLayeredShader.color

getCompositingFlag()

Retrieves the value of the “compositingFlag” attribute of a shader node.

Return type:int

Derived from api method maya.OpenMaya.MFnLayeredShader.compositingFlag

getGlowColor(lIndex=0)

Retrieves the value of the “glowColor” attribute of a shader node. This attribute represents the ambient color of the shader.

Parameters:
lIndex : int

Index of the shader’s entry in the inputs attribute array element.

Return type:

Color

Derived from api method maya.OpenMaya.MFnLayeredShader.glowColor

getHardwareColor()

Retrieves the value of the “hardwareColor” attribute of a shader node. This attribute represents the color of the material that appears in shaded mode.

Return type:Color

Derived from api method maya.OpenMaya.MFnLayeredShader.hardwareColor

getHardwareShader()

Retrieves the value of the “hardwareShader” attribute of a layered shader node.

Return type:Color

Derived from api method maya.OpenMaya.MFnLayeredShader.hardwareShader

getTransparency(lIndex=0)

Retrieves the value of the “transparency” attribute of a shader node. This attribute represents the surface transparency of the shader.

Parameters:
lIndex : int

Index of the shader’s entry in the inputs attribute array element.

Return type:

Color

Derived from api method maya.OpenMaya.MFnLayeredShader.transparency

setColor(col, lIndex=0)

Sets the value of the “color” attribute of a shader node.

Parameters:
col : Color

Color.

lIndex : int

Index of the shader’s entry in the inputs attribute array element.

Derived from api method maya.OpenMaya.MFnLayeredShader.setColor

setCompositingFlag(cflag)

Sets the value of the “compositingFlag” attribute of a shader node.

Parameters:
cflag : int

value to which the attribute will be set.

Derived from api method maya.OpenMaya.MFnLayeredShader.setCompositingFlag

setGlowColor(glow_color, lIndex=0)

Sets the value of the “glowColor” attribute of a shader node.

Parameters:
glow_color : Color

Color to which the attribute will be set.

lIndex : int

Index of the shader’s entry in the inputs attribute array element.

Derived from api method maya.OpenMaya.MFnLayeredShader.setGlowColor

setHardwareColor(hardware_color)

Sets the value of the “hardwareColor” attribute of a shader node.

Parameters:
hardware_color : Color

value to which the attribute will be set.

Derived from api method maya.OpenMaya.MFnLayeredShader.setHardwareColor

setHardwareShader(hardware_shader)

Sets the value of the “hardwareShader” attribute of a shader node.

Parameters:
hardware_shader : Color

value to which the attribute will be set.

Derived from api method maya.OpenMaya.MFnLayeredShader.setHardwareShader

setTransparency(transp, lIndex=0)

Sets the value of the “transparency” attribute of a shader node.

Parameters:
transp : Color

Value to which the attribute will be set.

lIndex : int

Index of the shader’s entry in the inputs attribute array element.

Derived from api method maya.OpenMaya.MFnLayeredShader.setTransparency