47
JavaScript Reference
AVLayer object
47
AVLayer preserveTransparency 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
) . p r e s e r v e T r a n s p a r e n c y
Description
True if preserve transparency is enabled for the layer.
Type
Boolean; read/write.
AVLayer quality 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
) . q u a l i t y
Description
The quality with which this layer is displayed.
Type
A
L a y e r Q u a l i t y
enumerated value; read/write. One of:
L a y e r Q u a l i t y . B E S T
L a y e r Q u a l i t y . D R A F T
L a y e r Q u a l i t y . W I R E F R A M E
AVLayer replaceSource() method
a p p . p r o j e c t . i t e m
( i n d e x )
. l a y e r (
i n d e x
) . r e p l a c e S o u r c e (
ne w S o u r c e , f i x E x p r e s si o n s
)
Description
Replaces the source for this layer.
Parameters
Returns
Nothing.
AVLayer source 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 o u r c e
Description
The source AVItem for this layer. The value is null in a Text layer. Use
A V L a y e r . r e p l a ce S o u r c e ( )
to change the
value.
Type
AVItem object; read-only.
n e w S o u r c e
The new source AVItem object.
f i x E x p r e s s i o n s
T r u e
to adjust expressions for the new source,
f a l s e
otherwise. Note that this feature can be
resource-intensive; if replacing a large amount of footage, do this only at the end of the operation.
See also “Project autoFixExpressions() method” on page 110.
Summary of Contents for 65009963 - After Effects CS4
Page 1: ...SCRIPTING GUIDE...