Launch hooks in a Studio Addon

Hi,

Is there some doc on how to code a custom launch hook (pre-launch, or post-launch) inside a Studio Addon ?

The only doc I found does not contain any example :
Launch hooks

It’s easy to add a pre-launch hooks inside an existing addon, because we can copy an existing hook.

But how to have such a hook in a Studio Addon ?
I guess there is something to override, to have the hook found and triggered (similar to what does get_publish_plugin_paths for publish plugins).

You can specify the hooks location in the addon.py

Additionally,
here’s an example hook set_default_display_and_view.py that shows how to access studio settings.

1 Like

Wow, you are fast, thanks ! :grinning: