|
|
Light attributes and methods (expression reference)
Light
objects have the same attributes and methods as Layer objects, except
for source, effect, mask, width, height, anchorPoint, scale, opacity, audioLevels, timeRemap,
and all of the material properties.
- pointOfInterest
- Return
type: Property [3].
Returns the point of interest values
for a light in world space.
- intensity
- Return
type: Property.
Returns the intensity values of a light as
a percentage.
- color
- Return
type: Property [4].
Returns the color value of a light.
- coneAngle
- Return
type: Property.
Returns the cone angle of a light, in degrees.
- coneFeather
- Return
type: Property.
Returns the cone feather value of a light
as a percentage.
- shadowDarkness
- Return
type: Property.
Returns the shadow darkness value of a light
as a percentage.
- shadowDiffusion
- Return
type: Property.
Returns the shadow diffusion value of a light,
in pixels.
David Van Brink provides an
instructional article and sample project on his omino pixel blog that show how to
use expressions with lights.
|