33
JavaScript Reference
AVItem object
33
AVItem duration attribute
a p p . p r o j e c t . i t e m
( i nd e x ) .
d u r a t i o n
Description
Returns the duration, in seconds, of the item. Still footage items have a duration of 0.
•
In a CompItem, the value is linked to the
d u r a t i o n
of the composition, and is read/write.
•
In a FootageItem, the value is linked to the
d u r a t i o n
of the
m a i n S o u r c e
object, and is read-only.
Type
Floating-point value in the range [0.0..10800.0]; read/write for a CompItem; otherwise, read-only.
AVItem footageMissing attribute
a p p . p r o j e c t . i t e m
( i nd e x ) .
f o o t a g e M i s s i n g
Description
When true, the AVItem is a placeholder, or represents footage with a source file that cannot be found. In this
case, the path of the missing source file is in the
m i s s i n g F o o t a g e P a t h
attribute of the footage item’s source-file
object. See “FootageItem mainSource attribute” on page 65 and “FileSource missingFootagePath attribute”
on page 60.
Type
Boolean; read-only.
AVItem frameDuration attribute
a p p . p r o j e c t . i t e m
( i nd e x ) .
f r a m e D u r a t i o n
Description
Returns the length of a frame for this AVItem, in seconds. This is the reciprocal of
f r a m e R a t e
. When set, the
reciprocal is automatically set as a new
f r a m e R a t e
value.
This attribute returns the reciprocal of the
f r a m e R a t e
, which may not be identical to a value you set, if that
value is not evenly divisible into 1.0 (for example, 0.3). Due to numerical limitations, (1 / (1 / 0.3)) is close to,
but not exactly, 0.3.
If the AVItem is a FootageItem, this value is linked to the
m a i n S o u r ce
, and is read-only. To change it, set the
c o n f o r m F r a m e R a t e
of the
m a i n S o u r c e
object. This sets both the
f r a m e R a t e
and
f r a m e D u r a t i o n
of the
FootageItem.
Type
Floating-point value in the range [1/99.. 1.0]; read-only for a FootageItem, otherwise read/write.
Summary of Contents for 65009963 - After Effects CS4
Page 1: ...SCRIPTING GUIDE...