pymel.core.nodetypes.Light

digraph inheritanced9500b3348 { rankdir=TB; ranksep=0.15; nodesep=0.15; size="8.0, 12.0"; "ContainerBase" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="pymel.core.nodetypes.ContainerBase.html#pymel.core.nodetypes.ContainerBase",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "DependNode" -> "ContainerBase" [arrowsize=0.5,style="setlinewidth(0.5)"]; "DagNode" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="pymel.core.nodetypes.DagNode.html#pymel.core.nodetypes.DagNode",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "Entity" -> "DagNode" [arrowsize=0.5,style="setlinewidth(0.5)"]; "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)"]; "Entity" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="pymel.core.nodetypes.Entity.html#pymel.core.nodetypes.Entity",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "ContainerBase" -> "Entity" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Light" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="#pymel.core.nodetypes.Light",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "Shape" -> "Light" [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)"]; "Shape" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="pymel.core.nodetypes.Shape.html#pymel.core.nodetypes.Shape",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "DagNode" -> "Shape" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

class Light(*args, **kwargs)
getCenterOfIllumination()

Retrieves the value of the “centerOfIllumination” attribute of a light node. This attribute represents the distance to the center of illumination of the light.

Return type:float

Derived from api method maya.OpenMaya.MFnLight.centerOfIllumination

getColor()

Retrieves the value of the “color” attribute of a light node. This attribute represents the color of the light emitted by the light node.

Return type:Color

Derived from api method maya.OpenMaya.MFnLight.color

getIntensity()

Retrieves the value of the “intensity” attribute of a light node. This attribute represents a uniform scaling factor applied to the light color.

Return type:float

Derived from api method maya.OpenMaya.MFnLight.intensity

getNumShadowSamples()

Retrieves the value of the “numShadowSamples” attribute of a light node. This attribute represents the number of shadow samples per point used in occulusion testing.

Return type:int

Derived from api method maya.OpenMaya.MFnLight.numShadowSamples

getOpticalFXvisibility()

Retrieves the value of the “opticalFXvisibility” attribute of a light node. This attribute represents an occlusion scaling factor for light glow effects on this light.

Return type:Color

Derived from api method maya.OpenMaya.MFnLight.opticalFXvisibility

getRayDepthLimit()

Retrieves the value of the “rayDepthLimit” attribute of a light node. This attribute determines a cutoff point for shadow calculations related to the light. Rays whose depth is higher than the value of this attribute will not trigger a shadow calculation for the light.

Return type:int

Derived from api method maya.OpenMaya.MFnLight.rayDepthLimit

getShadowColor()

Retrieves the value of the “shadowColor” attribute of a light node. This attribute represents the color of the shadows cast by the light.

Return type:Color

Derived from api method maya.OpenMaya.MFnLight.shadowColor

getUseRayTraceShadows()

Retrieves the value of the “useRayTraceShadows” attribute of a light node. This attribute determines whether or not the light should raytrace it’s shadows.

Return type:bool

Derived from api method maya.OpenMaya.MFnLight.useRayTraceShadows

lightAmbient()

Retrieves the value of the “lightAmbient” attribute of a light node. This attribute indicates if the light has an ambient component.

Return type:bool

Derived from api method maya.OpenMaya.MFnLight.lightAmbient

lightDiffuse()

Retrieves the value of the “lightDiffuse” attribute of a light node. This attribute indicates if the light has a diffuse component.

Return type:bool

Derived from api method maya.OpenMaya.MFnLight.lightDiffuse

lightDirection(instance, space='world')

Returns the direction in which the light is pointing. This is only valid for lights which are associated with a direction, such as area, directional or spot lights. The vector returned is not normalized.

Parameters:
instance : int

The instance of the light for which to return the direction.

space : Space.Space

The coordinate space for which the direction vector is returned. If MSpace::kWorld is passed in the vector will be in the lights world space. If any other MSpace::Space value in pass in the vector will be returned in object (or local) space.

values: ‘transform’, ‘preTransform’, ‘object’, ‘world’

Return type:

FloatVector

Derived from api method maya.OpenMaya.MSpace.lightDirection

lightIntensity()

Retrieves the value of the “lightIntensity” attribute of a light node. This attribute represents the intensity of the light specified as a color.

Return type:Color

Derived from api method maya.OpenMaya.MFnLight.lightIntensity

lightSpecular()

Retrieves the value of the “lightSpecular” attribute of a light node. This attribute indicates if the light has a specular component.

Return type:bool

Derived from api method maya.OpenMaya.MFnLight.lightSpecular

setCenterOfIllumination(dist)

Sets the value of the “centerOfIllumination” attribute of a light node.

Parameters:
dist : float

value to which the attribute will be set.

Derived from api method maya.OpenMaya.MFnLight.setCenterOfIllumination

setColor(col)

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

Parameters:
col : Color

value to which the attribute will be set.

Derived from api method maya.OpenMaya.MFnLight.setColor

setIntensity(intens)

Sets the value of the “intensity” attribute of a light node.

Parameters:
intens : float

value to which the attribute will be set.

Derived from api method maya.OpenMaya.MFnLight.setIntensity

setNumShadowSamples(num_shadow_samples)

Sets the value of the “numShadowSamples” attribute of a light node.

Parameters:
num_shadow_samples : int

value to which the attribute will be set.

Derived from api method maya.OpenMaya.MFnLight.setNumShadowSamples

setOpticalFXvisibility(visibility)

Sets the value of the “opticalFXvisibility” attribute of a light node.

Parameters:
visibility : Color

value to which the attribute will be set.

Derived from api method maya.OpenMaya.MFnLight.setOpticalFXvisibility

setRayDepthLimit(ray_depth_limit)

Sets the value of the “rayDepthLimit” attribute of a light node.

Parameters:
ray_depth_limit : int

value to which the attribute will be set.

Derived from api method maya.OpenMaya.MFnLight.setRayDepthLimit

setShadowColor(shadow_color)

Sets the value of the “shadowColor” attribute of a light node.

Parameters:
shadow_color : Color

value to which the attribute will be set.

Derived from api method maya.OpenMaya.MFnLight.setShadowColor

setUseRayTraceShadows(useRayTraceShadows)

Sets the value of the “useRayTraceShadows” attribute of a light node.

Parameters:
useRayTraceShadows : bool

value to which the attribute will be set.

Derived from api method maya.OpenMaya.MFnLight.setUseRayTraceShadows