mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
feat(resolve): wip otio import and publishing
This commit is contained in:
parent
70e760981e
commit
a3b11ad309
9 changed files with 211 additions and 103 deletions
|
|
@ -1,4 +1,3 @@
|
|||
import os
|
||||
import pyblish.api
|
||||
from pype.hosts import resolve
|
||||
from avalon import api as avalon
|
||||
|
|
@ -6,8 +5,8 @@ from pprint import pformat
|
|||
|
||||
# dev
|
||||
from importlib import reload
|
||||
from pype.hosts.resolve import otio
|
||||
reload(otio)
|
||||
from pype.hosts.resolve.otio import davinci_export
|
||||
reload(davinci_export)
|
||||
|
||||
|
||||
class CollectWorkfile(pyblish.api.ContextPlugin):
|
||||
|
|
@ -23,12 +22,13 @@ class CollectWorkfile(pyblish.api.ContextPlugin):
|
|||
project = resolve.get_current_project()
|
||||
fps = project.GetSetting("timelineFrameRate")
|
||||
|
||||
# adding otio timeline to context
|
||||
otio_timeline = resolve.get_otio_complete_timeline(project)
|
||||
|
||||
active_sequence = resolve.get_current_sequence()
|
||||
video_tracks = resolve.get_video_track_names()
|
||||
|
||||
# adding otio timeline to context
|
||||
otio_timeline = davinci_export.create_otio_timeline(
|
||||
active_sequence, fps)
|
||||
|
||||
instance_data = {
|
||||
"name": "{}_{}".format(asset, subset),
|
||||
"asset": asset,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue