60
JavaScript Reference
FileSource object
60
FileSource object
a p p . p r o j e c t . i t e m
( i n d e x )
. m a i n S o u r c e
a p p . p r o j e c t . i t e m
( i n d e x )
. p r o x y S o u r c e
Description
The FileSource object describes footage that comes from a file.
•
FileSource is a subclass of FootageSource. All methods and attributes of FootageSource, in addition to those
listed below, are available when working with FileSource. See “FootageSource object” on page 67.
Attributes
Methods
FileSource file attribute
a p p . p r o j e c t . i t e m (
i nd e x
) . m a i n S o u r c e . f i l e
a p p . p r o j e c t . i t e m (
i nd e x
) . p r o x y S o u r ce . f i l e
Description
The ExtendScript File object for the file that defines this asset. To change the value:
•
If this FileSource is a
p r o x y S o u r c e
of an AVItem, call
s e t P r o x y ( )
or
s e t P r o x y W i t h S e q u e n c e ( )
.
•
If this FileSource is a
m a i n S o u r c e
of a FootageItem, call
r e p l a c e ( )
or
r e p l a c e W i t h S e q u e n c e ( )
.
Type
File object; read-only.
FileSource missingFootagePath attribute
a p p . p r o j e c t . i t e m (
i nd e x
) . m a i n S o u r c e . f i l e . m i s s i n g F o o t a g e P a t h
a p p . p r o j e c t . i t e m (
i nd e x
) . p r o x y S o u r ce . f i l e . m i s s i n g F o o t a g e P a t h
Description
The path and filename of footage that is missing from this asset. See also “AVItem footageMissing attribute”
on page 33.
Type
String; read-only.
Attribute
Reference
Description
f i le
“FileSource file attribute” on page 60
The file that defines this asset.
m i s s i n g F o o t a g e P a t h
“FileSource missingFootagePath attribute”
on page 60
The file that contains footage missing from this asset.
Method
Reference
Description
r e l o a d ( )
“FileSource reload() method” on page 61
Reloads the asset from the file, if it is a
m a i n S o u r c e
of
a FootageItem.
Summary of Contents for 65009963 - After Effects CS4
Page 1: ...SCRIPTING GUIDE...