Predefined Variables
These variables are defined for each script and are the primary access to Flying Logic documents and other features.
These variables are defined for each script and are the primary access to Flying Logic documents and other features.
Name
Description
document
This represents the current document and is an instance of the Document class.
Application
This is a singleton instance of the Application class. Methods and variables that are not related to particular documents can be accessed through this object.
scriptParentDirectory
The path to the directory containing the script.
scriptMode
Has the value importer
, exporter
or standard
. This allows one script to act in any of the three modes; i.e., a script could be written as an importer and exporter.
importItemLabel
exportItemLabel
runItemLabel
These write-only variables will assign a custom name to the scriptβs menu item. See Writing Importers and Exporters for details.
Last updated