...
In order to find the hook files the file name must match exactly. Please see list below.
The example scripts can be found here:
https://github.com/das-element/resources/tree/main/scripts/hooks/examples
Script | Description |
---|---|
| Gets executed before each transcoding task |
| Gets executed after each transcoding task |
| Gets executed before the file paths get loaded into the ingest view |
| Gets execture before the library elements get exported |
...
In the example below, in order to resolve a path pattern like <custom.dependecy>
you need to add some value for the custom data. If that is not provided the resolve would otherwise fail if you re-render the proxies and there is no main task to provide the dependency which we normally would get from the post render hook after sending the task to the render farm.
...
Link to example script:
https://github.com/das-element/resources/blob/main/scripts/hooks/examples/deadline/pre_render.py
Post Render Hook
The input is the output of the process called by the custom command task.
You will have to return a Dictionary which will be added as custom
to the resolver data and can later be accessed in the Path Builder. return {'dependency': job_id}
can later be resolved with <custom.dependency>
...
language | py |
---|
...
Link to example script:
https://github.com/das-element/resources/blob/main/scripts/hooks/examples/deadline/post_render.py
Pre Ingest Load
This hook can be used to parse the file paths to set tags and the category from the file path before the items are loaded into the ingest list. These tags and the category will automatically populate the ingest list items.
The input is a List of Dictionaries and the same has to be returned from the function.
...
language | py |
---|
...
Link to example script:
https://github.com/das-element/resources/blob/main/scripts/hooks/examples/ingest/pre_ingest_load.py
Pre Export
This hook can be used to edit, reformat or add additional values to the export from the library elements.
...
The input is a List of Dictionaries and the same has to be returned from the function.
...
language | py |
---|
...
Link to example script:
https://github.com/das-element/resources/blob/main/scripts/hooks/examples/shotgrid/pre_export.py