66
JavaScript Reference
FootageItem object
66
FootageItem replaceWithSequence() method
a p p . p r o j e c t . i t e m
( i n d e x )
. r e p l a c e W i t h S e q u e n c e (
f i l e , f o r c e A l p h a b e t i c a l
)
Description
Changes the source of this FootageItem to the specified image sequence. In addition to loading the file, the
method creates a new FileSource object for the file and sets
m a in S o u r c e
to that object. In the new source
object, it sets the
n a m e
,
w i d t h
,
h e i g h t
,
f r a m e D u r a t i o n
, and
d u r a t i o n
attributes (see “AVItem object” on
page 32) based on the contents of the file.
The method preserves interpretation parameters from the previous
m a i n S o u r ce
object. If the specified file has
an unlabeled alpha channel, the method estimates the alpha interpretation.
Parameters
FootageItem replaceWithSolid() method
a p p . p r o j e c t . i t e m
( i n d e x )
. r e p l a c e W i t h S o l id (
c o l o r , n a m e , w i d t h , h e i g h t , p i x e l A s p e c t
)
Description
Changes the source of this FootageItem to the specified solid. Creates a new SolidSource object, sets its values
from the parameters, and sets
m a i n S o u r c e
to that object.
Parameters
f r a m e R a t e
The frame rate of the placeholder, a floating-point value in the range [1.0..99.0]
d u r a t i o n
The duration of the placeholder in seconds, a floating-point value in the range [0.0..10800.0].
f i l e
An ExtendScript File object for the first file in the sequence to be used as the footage main source.
f o r c e A l p h a b e t i c a l
When true, use the “Force alphabetical order” option.
c o l o r
The color of the solid, an array of three floating-point values, [R, G, B], in the range [0.0..1.0].
n a m e
A string containing the name of the solid.
w i d t h
The width of the solid in pixels, an integer in the range [4..30000].
h e i g h t
The height of the solid in pixels, an integer in the range [4..30000].
p i xe l A s p e c t
The pixel aspect ratio of the solid, a floating-point value in the range [0.01..100.0].
Summary of Contents for 65009963 - After Effects CS4
Page 1: ...SCRIPTING GUIDE...