Adobe 65009963 Scripting Manual page 73

After effects cs4
Table of Contents

Advertisement

JavaScript Reference
ImportOptions object
n e w I m p o r tO pt i o n s () ;
n e w I m p o r tO pt i o n s (f i l e ) ;
Description
The ImportOptions object encapsulates the options used to import a file with the
methods. See "Project importFile() method" on page 112.
The constructor takes an optional parameter, an ExtendScript File object for the file. If it is not supplied, you
must explicitly set the value of the
example:
n e w I m p o r tO pt i o n s () .f i l e = n e w F il e (" m y f i l e .p s d" ) ;
Attributes
Attributes
Reference
i m p o r t A s
"ImportOptions importAs attribute" on
page 74
s e q u e n c e
"ImportOptions sequence attribute" on
page 75
f o r c e A l ph ab e t i c al
"ImportOptions forceAlphabetical
attribute" on page 74
f i le
"ImportOptions file attribute" on
page 74
Methods
Method
Reference
c a n I m p o r t A s( )
"ImportOptions canImportAs() method"
on page 73
ImportOptions canImportAs() method
i m p o r t O p t i o n s .ca n Imp ort As (t y p e )
Description
Reports whether the file can be imported as the source of a particular object type. If this method returns true,
you can set the given type as the value of the
page 74.
Parameters
t y pe
The type of file that can be imported.
I m p o r t A s T y p e . C O M P
I m p o r t A s T y p e . F O O T A GE
I m p ort As T y pe .C O MP _ C R O PP E D _ L AY E R S
I m p o r t A s T y p e . P R O J E C T
attribute before using the object with the
f i l e
Description
The type of file to be imported.
When true, import a sequence of files, rather than an individ-
ual file.
When true, the "Force alphabetical order" option is set.
The file to import, or the first file of the sequence to import.
Description
Restricts input to a particular file type.
attribute. See "ImportOptions importAs attribute" on
i m p o r t A s
An
I m p o r t A s T y p e
ImportOptions object
P r o je c t .i m p o r t F il e
method. For
i m p o r t Fi l e
enumerated value; one of:
73
73

Advertisement

Table of Contents
loading

This manual is also suitable for:

Creative suite 3 after effects

Table of Contents