mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
resolve: fixing import in collector
This commit is contained in:
parent
07d89fc23b
commit
09af23e2d7
1 changed files with 3 additions and 5 deletions
|
|
@ -1,11 +1,9 @@
|
|||
import pyblish.api
|
||||
from pprint import pformat
|
||||
from importlib import reload
|
||||
|
||||
from openpype.hosts import resolve
|
||||
from openpype.hosts.resolve import api as rapi
|
||||
from openpype.pipeline import legacy_io
|
||||
from openpype.hosts.resolve.otio import davinci_export
|
||||
reload(davinci_export)
|
||||
|
||||
|
||||
class PrecollectWorkfile(pyblish.api.ContextPlugin):
|
||||
|
|
@ -18,9 +16,9 @@ class PrecollectWorkfile(pyblish.api.ContextPlugin):
|
|||
|
||||
asset = legacy_io.Session["AVALON_ASSET"]
|
||||
subset = "workfile"
|
||||
project = resolve.get_current_project()
|
||||
project = rapi.get_current_project()
|
||||
fps = project.GetSetting("timelineFrameRate")
|
||||
video_tracks = resolve.get_video_track_names()
|
||||
video_tracks = rapi.get_video_track_names()
|
||||
|
||||
# adding otio timeline to context
|
||||
otio_timeline = davinci_export.create_otio_timeline(project)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue