90
JavaScript Reference
Layer object
90
Layer remove() method
a p p . p r o j e c t . i t e m (
i nd e x
) . l a y e r (
i n d e x
) . r e m o v e ( )
Description
Deletes the specified layer from the composition.
Parameters
None.
Returns
Nothing.
Layer selectedProperties attribute
a p p . p r o j e c t . i t e m (
i nd e x
) . l a y e r (
i n d e x
) . s e l e c t e d P r o p e r t i e s
Description
An array containing all of the currently selected Property and PropertyGroup objects in the layer.
Type
Array of PropertyBase objects; read-only.
Layer setParentWithJump() method
a p p . p r o j e c t . i t e m (
i nd e x
) . l a y e r (
i n d e x
) . s e t P a r e n t W i t h J u m p (
n e w P a r e n t
)
Description
Sets the parent of this layer to the specified layer, without changing the transform values of the child layer.
There may be an apparent jump in the rotation, translation, or scale of the child layer, as this layer’s transform
values are combined with those of its ancestors.
If you do not want the child layer to jump, set the
p a r e n t
attribute directly. In this case, an offset is calculated
and set in the child layer's transform fields, to prevent the jump from occurring.
Parameters
Returns
Nothing.
Layer shy attribute
a p p . p r o j e c t . i t e m (
i nd e x
) . l a y e r (
i n d e x
) . s h y
Description
When true, the layer is “shy,” meaning that it is hidden in the Layer panel if the composition’s “Hide all shy
layers” option is toggled on.
n e w P a r e n t
A layer object in the same composition.
Summary of Contents for 65009963 - After Effects CS4
Page 1: ...SCRIPTING GUIDE...