Scripting
Flying Logic includes a powerful scripting system based on the Python™ programming language.
Last updated
Was this helpful?
Flying Logic includes a powerful scripting system based on the Python™ programming language.
Last updated
Was this helpful?
Flying Logic includes a powerful scripting system based on the . Scripts can be used to create or manipulate Flying Logic documents, and create importers and exporters that allow foreign file types to be loaded and saved directly from within Flying Logic.
Most of the details of how the built-in Python interpreter interacts with Flying Logic are detailed in the . This section describes only the basic scripting features and commands.
To run a general-purpose script that either creates a new Flying Logic document or performs operations on the frontmost open document, use the Edit ➡ Run Script ➡ Open Script… command. For your convenience, the last four scripts run are remembered in the Run Script submenu.
To convert a foreign file format to a Flying Logic document via a script-based importer, use the File ➡ Import ➡ Import Via Script ➡ Open Script… command. For your convenience, the last four importers run are remembered in the Import Via Script submenu.
To convert the frontmost Flying Logic document to a foreign file format via a script-based exporter, use the File ➡ Export ➡ Export Via Script ➡ Open Script… command. For your convenience, the last four exporters run are remembered in the Export Via Script submenu.
The is used manage custom name-value pairs in any Flying Logic document element or in the document itself. This data can be accessed or modified directly from scripts.