How bigroy/ayon-launch-scripts works
AYON Launch Scripts provides CLI-driven execution of Python scripts and headless publishing inside supported DCC applications. The main workflow resolves an application variant, builds its AYON context and host-specific launch arguments, then runs a script and relays process output and status. Publishing adds a workfile-opening publish script and configurable pre/post hooks; a launcher action can find the latest workfile and submit a farm publish. The graph reflects sampled calls and README capabilities; hook dispatch and some publish internals were not sampled, so those links are marked unverified.
Main entry points: addon.py CLI commands · publish_last_workfile.py Publish launcher action · run_script.py Host launcher · publish_script.py Publish entry script
Components 15
CLI and launch
- CLI commands
client/ayon_launch_scripts/addon.py - Variant lookup
client/ayon_launch_scripts/lib.py - Host launcher
client/ayon_launch_scripts/run_script.py - Output relay
client/ayon_launch_scripts/lib.py
Publishing workflow
- Publish entry script
client/ayon_launch_scripts/scripts/publish_script.py - Pre/post scripts
client/ayon_launch_scripts/pre_post_scripts - Fusion entry script
client/ayon_launch_scripts/scripts/fusion_launch_script.py3 - Latest workfile lookup
client/ayon_launch_scripts/lib.py - Publish skip checks
client/ayon_launch_scripts/pre_post_scripts/quit_on_only_workfile_instance.py
Farm submission
- Publish launcher action
client/ayon_launch_scripts/plugins/launcher_actions/publish_last_workfile.py
Server addon
- Server addon
server/__init__.py - Addon settings
server/settings/main.py
Other components
- AYON operator
- DCC application
- Deadline service
Connections 13
- AYON operator → CLI commands: runs command
README.md - CLI commands → Variant lookup: resolves variant
client/ayon_launch_scripts/addon.py - CLI commands → Host launcher: launches script
client/ayon_launch_scripts/addon.py - Host launcher → DCC application: starts process
client/ayon_launch_scripts/run_script.py - CLI commands → Output relay: relays output
client/ayon_launch_scripts/addon.py - CLI commands → Publish entry script: selects entry script
client/ayon_launch_scripts/addon.py - Publish entry script → Pre/post scripts: dispatches hooks
- Host launcher → Fusion entry script: configures launch entry
client/ayon_launch_scripts/run_script.py - Publish launcher action → Latest workfile lookup: finds workfile
client/ayon_launch_scripts/plugins/launcher_actions/publish_last_workfile.py - Publish launcher action → CLI commands: builds publish command
client/ayon_launch_scripts/plugins/launcher_actions/publish_last_workfile.py - Publish launcher action → Deadline service: submits job
client/ayon_launch_scripts/plugins/launcher_actions/publish_last_workfile.py - Pre/post scripts → Publish skip checks: includes check
- Server addon → Addon settings: loads settings
server/__init__.py