Adobe 12040118 - After Effects Standard Using Manual page 95

Using help
Hide thumbs Also See for 12040118 - After Effects Standard:
Table of Contents

Advertisement

Help
Using Help
Description
The ImportOptions object provides the ability to create, change, and access options for the importFile()
method. You can create ImportOptions using one of two constructors, one of which takes arguments, the
other which does not.
Constructors
If importFile() is set without arguments, it has a "file" that does not exist unless it is set in another statement:
n e w Imp o r tO p t i o n s ( ) . fi l e = n e w F i l e ( " my fil e . p s d " ) ;
Otherwise importFile can be set with a single argument, which is a File object:
v a r my _ i o = n e w Imp o r tO p t i o n s ( n e w F i l e ( " my fil e . p s d " ) ) ;
Attributes
Attributes
impor tAs
sequence
forceAlphabetical
file
Methods
Method
canImpor tAs()
ImportOptions canImportAs() method
i m p o r t O p t i o n s .canImpor tAs( Imp o r t AsTy p e )
Description
The canImportAs() method is used to determine whether a given file can be imported as a given Impor-
tAsType, passed in as an argument.
Parameters
ImportAsType; one of:
Imp o r t As Ty p e . C O M P
Imp o r t As Ty p e . F O OTAG E
Imp o r tAs Ty p e . C O M P _ C RO P PE D _ L AY E R S
Imp o r t As Ty p e . P RO J E C T
Returns
Boolean.
Using Help
Reference
see "ImportOptions importAs attribute"
on page 96
see "ImportOptions sequence attribute"
on page 96
see "ImportOptions forceAlphabetical
attribute" on page 96
see "ImportOptions file attribute" on
page 96
Reference
see "ImportOptions canImportAs()
method" on page 95
Reference
Back
Description
contains the ImportAsType
boolean to determine whether a sequence or
an individual file is imported
boolean to determine whether the Force
Alphabetical Order option is set
the file to import
Description
sets the ImportAsType, allowing the input to
be restricted to a particular type
Back
95
95

Advertisement

Table of Contents
loading

This manual is also suitable for:

After effects

Table of Contents