You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please note that if a "post adapter write hook" changes `in_timeline` in any way, the api will not automatically update the already serialized file. The changes will only exist in the in-memory object, because the hook runs _after_ the file is serialized to disk.
129
+
130
+
## Implementing Adapter-specific hooks
131
+
132
+
While OTIO ships with a set of pre-defined hooks (e.g. `pre_adapter_write`), you can also define your own hooks in your adapter.
133
+
These can be useful to give the user more fine-grained control over the execution of your adapter and make it work for their specific workflow.
134
+
A good example is media embedding within Avids AAF files: Depending on the workflow, media references might have to be transcoded to be compatible with the AAF format.
135
+
To achieve this, the AAF adapter could define a hook which users can leverage to transcode the files before embedding is attempted.
136
+
137
+
To define a custom hook in your adapter, you need to implement the `adapter_hook_names` function in your adapter module.
138
+
You can define as many hooks as you like, but try to use the native hooks where possible to keep the API consistent.
0 commit comments