HooksΒΆ

Hooks in ftrack connect can be used to extend or modify the default behaviour of the application. They build upon the event system used in ftrack. As such, each hook receives a single argument which is an instance of ftrack.Event.

The built-in hooks can be overridden by creating new hooks and placing them in a directory. Then configure the environment by setting the FTRACK_EVENT_PLUGIN_PATH environment variable.

It is also possible to prevent a default hook from being triggered by calling event.stop in a callback with higher priority or by removing the default hook using ftrack.EVENT_HUB.unsubscribe

Note

Unlike regular events, hooks will typically be run synchronously on the system running the ftrack connect application.