ynput / ayon-hiero

Hiero addon for AYON
Apache License 2.0
3 stars 2 forks source link

Fix timecode detection and image sequence source range on OTIO AYON exporter for Hiero. #17

Closed robin-ynput closed 3 weeks ago

robin-ynput commented 1 month ago

Changelog Description

resolve #13

Fixes custom AYON OTIO export.

Additional info

87399.0 / 24.0 == 91040.625 / 25.0

Testing notes:

Ensure that the available_range and source_range match for each clip with exporting OTIO from native Hiero and custom AYON.

  1. export with AYON custom exporter
    
    from ayon_hiero.api.otio import hiero_export

output_path = r"C:\path\to\output\custom.otio" otio_timeline = hiero_export.create_otio_timeline()
hiero_export.write_to_file(otio_timeline, output_path)


2. export native Hiero exporter
```python
import hiero.core

preset_name = "OTIO"
preset = hiero.core.taskRegistry.processorPresetByName(preset_name)
item = hiero.core.ItemWrapper(sequence_obj)
hiero.core.taskRegistry.createAndExecuteProcessor(preset, [item])

Here are my results (made a timeline with a mix of timeline: