pymel.core.nodetypes.DirectionalLight

Inheritance diagram of DirectionalLight

class DirectionalLight(*args, **kwargs)

class counterpart of mel function directionalLight

The directionalLight command is used to edit the parameters of existing directionalLights, or to create new ones. The default behaviour is to create a new directionallight.

getDiscRadius(**kwargs)

radius of the disc around the light

Derived from mel command maya.cmds.directionalLight

getExclusive(**kwargs)

Derived from mel command maya.cmds.directionalLight

getRgb(**kwargs)

color of the light (0-1)

Derived from mel command maya.cmds.directionalLight

getShadowAngle()

Retrieves the value of the “shadowAngle” attribute of a directional light node. This attribute represents an angular divergence from the direction vector of the light used to calculate soft shadows.

Return type:float

Derived from api method maya.OpenMaya.MFnDirectionalLight.shadowAngle

getShadowDither(**kwargs)

dither the shadow

Derived from mel command maya.cmds.directionalLight

getShadowSamples(**kwargs)

number of shadow samples.

Derived from mel command maya.cmds.directionalLight

getSoftShadow(**kwargs)

soft 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.directionalLight

getUseLightPosition()

Retrieves the value of the “useLightPosition” attribute of a directional light. This attribute determines if the objects behind the light will cast shadows.

Return type:bool

Derived from api method maya.OpenMaya.MFnDirectionalLight.useLightPosition

setDiscRadius(val=True, **kwargs)

radius of the disc around the light

Derived from mel command maya.cmds.directionalLight

setExclusive(val=True, **kwargs)

Derived from mel command maya.cmds.directionalLight

setRgb(val=True, **kwargs)

color of the light (0-1)

Derived from mel command maya.cmds.directionalLight

setShadowAngle(shadow_angle)

Sets the value of the “shadowAngle” attribute of a directional light node.

Parameters :
shadow_angle : float

value to which the attribute will be set.

Derived from api method maya.OpenMaya.MFnDirectionalLight.setShadowAngle

setShadowDither(val=True, **kwargs)

dither the shadow

Derived from mel command maya.cmds.directionalLight

setShadowSamples(val=True, **kwargs)

number of shadow samples.

Derived from mel command maya.cmds.directionalLight

setSoftShadow(val=True, **kwargs)

soft 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.directionalLight

setUseLightPosition(use_light_position)

Sets the value of the “useLightPosition” attribute of a directional light.

Parameters :
use_light_position : bool

value to which the attribute will be set.

Derived from api method maya.OpenMaya.MFnDirectionalLight.setUseLightPosition

Previous topic

pymel.core.nodetypes.DirectedDisc

Next topic

pymel.core.nodetypes.DiskCache

Core

Core Modules

Other Modules

This Page