Layer space transforms methods – Adobe After Effects CS3 User Manual
Page 578
AFTER EFFECTS CS3
User Guide
573
rotationZ
Return type: Property.
Returns the z rotation value, in degrees, for a 3D layer.
lightTransmission
Return type: Property.
Returns the value of the Light Transmission property for a 3D layer.
castsShadows
Return type: Property.
Returns a value of 1.0 if the layer casts shadows.
acceptsShadows
Return type: Property.
Returns a value of 1.0 if the layer accepts shadows.
acceptsLights
Return type: Property.
Returns a value of 1.0 if the layer accepts lights.
ambient
Return type: Property.
Returns the ambient component value as a percentage.
diffuse
Return type: Property.
Returns the diffuse component value as a percentage.
specular
Return type: Property.
Returns the specular component value as a percentage.
shininess
Return type: Property.
Returns the shininess component value as a percentage.
metal
Return type: Property.
Returns the metal component value as a percentage.
Layer Space Transforms methods
Use layer space transform methods to transform values from one space to another, such as from layer space to world
space. The “from” methods transform values from the layer’s space to the named space (composition or world). The
“to” methods transform values from the named space (composition or world) to the layer space. Each transform
method takes an optional argument to determine the time at which the layer’s transform is computed; however, you
can almost always use the current (default) time.
Use “Vec” transform methods when transforming a direction vector, such as the difference between two position
values. Use the plain (non-”Vec”) transform methods when transforming a point, such as position. Composition
(comp) and world space are the same for 2D layers. For 3D layers, however, composition space is relative to the active
camera, and world space is independent of the camera.
toComp(point, t=time)
Return type: Array [2 or 3].
Argument type: point is an Array [2 or 3], and t is a Number.
Transforms a point from layer space to composition space.
fromComp(point, t=time)
Return type: Array [2 or 3].
Argument type: point is an Array [2 or 3], and t is a Number.