pymel.core.nodetypes.LayeredShader

Inheritance diagram of LayeredShader

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

Previous topic

pymel.core.nodetypes.Lattice

Next topic

pymel.core.nodetypes.LayeredTexture

Core

Core Modules

Other Modules

This Page