Import options
ImportOptions
¶
Options for importing a file into an After Effects project.
This is a parameter container used by Project.import_file(). It
validates the import settings before the actual import operation.
Unlike most py_aep classes, ImportOptions has no chunk backing -
import settings are not stored in the .aep binary format.
Example
See: https://ae-scripting.docsforadobe.dev/other/importoptions/
Attributes¶
file
¶
file: Path
The file to be imported. If a file is set in the constructor, you can access it through this attribute. Read / Write.
force_alphabetical
¶
force_alphabetical: bool
When True and sequence is also True, use alphabetical
order for sequence frame numbering. Read / Write.
sequence
¶
sequence: bool
When True, import the file as part of a numbered image
sequence. Read / Write.
Functions¶
can_import_as
¶
can_import_as(type: int | ImportAsType) -> bool
Check whether the file can be imported as the given type.
Parameters:
-
type(int | ImportAsType) –The import type to check.
Returns:
-
bool–Trueif the file can be imported astype.