pymel.core.nodetypes.AmbientLight

Inheritance diagram of AmbientLight

class AmbientLight(*args, **kwargs)

class counterpart of mel function ambientLight

The ambientLight command is used to edit the parameters of existing ambientLights, or to create new ones. The default behaviour is to create a new ambientlight.

getAmbientShade()

Retrieves the value of the “ambientShade” attribute of an ambient light node. This attribute determines how positional the light is. A value of 0 represents a completely ambient light, while a value of 1 represents a point light.

Return type:float

Derived from api method maya.OpenMaya.MFnAmbientLight.ambientShade

getCastSoftShadows()

Retrieves the value of the “castSoftShadows” attribute of an ambient light node. This attribute determines whether or not the light casts soft shadows.

Return type:bool

Derived from api method maya.OpenMaya.MFnAmbientLight.castSoftShadows

getDiscRadius(**kwargs)

radius of the disc around the light

Derived from mel command maya.cmds.ambientLight

getExclusive(**kwargs)

Derived from mel command maya.cmds.ambientLight

getPosition(**kwargs)

Derived from mel command maya.cmds.ambientLight

getRgb(**kwargs)

color of the light (0-1)

Derived from mel command maya.cmds.ambientLight

getRotation(**kwargs)

Derived from mel command maya.cmds.ambientLight

getShadowDither(**kwargs)

dither the shadowFlag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.ambientLight

getShadowRadius()

Retrieves the value of the “shadowRadius” attribute of an ambient light node. This attribute represents the radius of the light used when computing soft shadows. Higher radius values result in more extended soft shadows.

Return type:float

Derived from api method maya.OpenMaya.MFnAmbientLight.shadowRadius

getShadowSamples(**kwargs)

number of shadow samples.

Derived from mel command maya.cmds.ambientLight

getSoftShadow(**kwargs)

soft shadow

Derived from mel command maya.cmds.ambientLight

setAmbientShade(ambient_shade)

Sets the value of the “ambientShade” attribute of an ambient light node.

Parameters :
ambient_shade : float

value to which the attribute will be set.

Derived from api method maya.OpenMaya.MFnAmbientLight.setAmbientShade

setCastSoftShadows(cast_soft_shadows)

Sets the value of the “castSoftShadows” attribute of an ambient light node.

Parameters :
cast_soft_shadows : bool

value to which the attribute will be set.

Derived from api method maya.OpenMaya.MFnAmbientLight.setCastSoftShadows

setDiscRadius(val=True, **kwargs)

radius of the disc around the light

Derived from mel command maya.cmds.ambientLight

setExclusive(val=True, **kwargs)

Derived from mel command maya.cmds.ambientLight

setPosition(val=True, **kwargs)

Derived from mel command maya.cmds.ambientLight

setRgb(val=True, **kwargs)

color of the light (0-1)

Derived from mel command maya.cmds.ambientLight

setRotation(val=True, **kwargs)

Derived from mel command maya.cmds.ambientLight

setShadowDither(val=True, **kwargs)

dither the shadowFlag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.ambientLight

setShadowRadius(shadow_radius)

Sets the value of the “shadowRadius” attribute of an ambient light node.

Parameters :
shadow_radius : float

value to which the attribute will be set.

Derived from api method maya.OpenMaya.MFnAmbientLight.setShadowRadius

setShadowSamples(val=True, **kwargs)

number of shadow samples.

Derived from mel command maya.cmds.ambientLight

setSoftShadow(val=True, **kwargs)

soft shadow

Derived from mel command maya.cmds.ambientLight

Previous topic

pymel.core.nodetypes.AlignSurface

Next topic

pymel.core.nodetypes.AngleBetween

Core

Core Modules

Other Modules

This Page