mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix imports
This commit is contained in:
parent
21c02e023c
commit
a07820cb8c
14 changed files with 23 additions and 24 deletions
|
|
@ -453,19 +453,19 @@ def get_track_openpype_data(track, container_name=None):
|
|||
)
|
||||
|
||||
|
||||
@deprecated("ayon_core.hosts.hiero.api.lib.get_trackitem_openpype_tag")
|
||||
@deprecated("ayon_hiero.api.lib.get_trackitem_openpype_tag")
|
||||
def get_track_item_pype_tag(track_item):
|
||||
# backward compatibility alias
|
||||
return get_trackitem_openpype_tag(track_item)
|
||||
|
||||
|
||||
@deprecated("ayon_core.hosts.hiero.api.lib.set_trackitem_openpype_tag")
|
||||
@deprecated("ayon_hiero.api.lib.set_trackitem_openpype_tag")
|
||||
def set_track_item_pype_tag(track_item, data=None):
|
||||
# backward compatibility alias
|
||||
return set_trackitem_openpype_tag(track_item, data)
|
||||
|
||||
|
||||
@deprecated("ayon_core.hosts.hiero.api.lib.get_trackitem_openpype_data")
|
||||
@deprecated("ayon_hiero.api.lib.get_trackitem_openpype_data")
|
||||
def get_track_item_pype_data(track_item):
|
||||
# backward compatibility alias
|
||||
return get_trackitem_openpype_data(track_item)
|
||||
|
|
@ -802,7 +802,7 @@ class PublishAction(QtWidgets.QAction):
|
|||
#
|
||||
# '''
|
||||
# import hiero.core
|
||||
# from ayon_core.hosts.nuke.api.lib import (
|
||||
# from ayon_nuke.api.lib import (
|
||||
# BuildWorkfile,
|
||||
# imprint
|
||||
# )
|
||||
|
|
|
|||
|
|
@ -308,9 +308,9 @@ def reload_config():
|
|||
import importlib
|
||||
|
||||
for module in (
|
||||
"ayon_core.hosts.hiero.lib",
|
||||
"ayon_core.hosts.hiero.menu",
|
||||
"ayon_core.hosts.hiero.tags"
|
||||
"ayon_hiero.lib",
|
||||
"ayon_hiero.menu",
|
||||
"ayon_hiero.tags"
|
||||
):
|
||||
log.info("Reloading module: {}...".format(module))
|
||||
try:
|
||||
|
|
@ -328,7 +328,7 @@ def on_pyblish_instance_toggled(instance, old_value, new_value):
|
|||
log.info("instance toggle: {}, old_value: {}, new_value:{} ".format(
|
||||
instance, old_value, new_value))
|
||||
|
||||
from ayon_core.hosts.hiero.api import (
|
||||
from ayon_hiero.api import (
|
||||
get_trackitem_openpype_tag,
|
||||
set_publish_attribute
|
||||
)
|
||||
|
|
|
|||
|
|
@ -600,7 +600,7 @@ class Creator(LegacyCreator):
|
|||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(Creator, self).__init__(*args, **kwargs)
|
||||
import ayon_core.hosts.hiero.api as phiero
|
||||
import ayon_hiero.api as phiero
|
||||
self.presets = get_current_project_settings()[
|
||||
"hiero"]["create"].get(self.__class__.__name__, {})
|
||||
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@ import traceback
|
|||
|
||||
# activate hiero from pype
|
||||
from ayon_core.pipeline import install_host
|
||||
import ayon_core.hosts.hiero.api as phiero
|
||||
import ayon_hiero.api as phiero
|
||||
install_host(phiero)
|
||||
|
||||
try:
|
||||
__import__("ayon_core.hosts.hiero.api")
|
||||
__import__("ayon_hiero.api")
|
||||
__import__("pyblish")
|
||||
|
||||
except ImportError as e:
|
||||
|
|
@ -15,5 +15,5 @@ except ImportError as e:
|
|||
|
||||
else:
|
||||
# Setup integration
|
||||
import ayon_core.hosts.hiero.api as phiero
|
||||
import ayon_hiero.api as phiero
|
||||
phiero.lib.setup()
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import hiero.core
|
|||
from hiero.core import util
|
||||
|
||||
import opentimelineio as otio
|
||||
from ayon_core.hosts.hiero.api.otio import hiero_export
|
||||
from ayon_hiero.api.otio import hiero_export
|
||||
|
||||
class OTIOExportTask(hiero.core.TaskBase):
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ except ImportError:
|
|||
|
||||
FormLayout = QFormLayout # lint:ok
|
||||
|
||||
from ayon_core.hosts.hiero.api.otio import hiero_export
|
||||
from ayon_hiero.api.otio import hiero_export
|
||||
|
||||
class OTIOExportUI(hiero.ui.TaskUIBase):
|
||||
def __init__(self, preset):
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import hiero.core
|
|||
|
||||
import PySide2.QtWidgets as qw
|
||||
|
||||
from ayon_core.hosts.hiero.api.otio.hiero_import import load_otio
|
||||
from ayon_hiero.api.otio.hiero_import import load_otio
|
||||
|
||||
|
||||
class OTIOProjectSelect(qw.QDialog):
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
from copy import deepcopy
|
||||
import ayon_core.hosts.hiero.api as phiero
|
||||
# from ayon_core.hosts.hiero.api import plugin, lib
|
||||
import ayon_hiero.api as phiero
|
||||
# from ayon_hiero.api import plugin, lib
|
||||
# reload(lib)
|
||||
# reload(plugin)
|
||||
# reload(phiero)
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ from ayon_core.lib.transcoding import (
|
|||
VIDEO_EXTENSIONS,
|
||||
IMAGE_EXTENSIONS
|
||||
)
|
||||
import ayon_core.hosts.hiero.api as phiero
|
||||
import ayon_hiero.api as phiero
|
||||
|
||||
|
||||
class LoadClip(phiero.SequenceLoader):
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ from ayon_core.pipeline import (
|
|||
load,
|
||||
get_representation_path,
|
||||
)
|
||||
from ayon_core.hosts.hiero import api as phiero
|
||||
from ayon_hiero import api as phiero
|
||||
from ayon_core.lib import Logger
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
# from ayon_core import plugins
|
||||
import os
|
||||
import json
|
||||
import pyblish.api
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ import pyblish
|
|||
from ayon_core.pipeline import AYON_INSTANCE_ID, AVALON_INSTANCE_ID
|
||||
from ayon_core.pipeline.editorial import is_overlapping_otio_ranges
|
||||
|
||||
from ayon_core.hosts.hiero import api as phiero
|
||||
from ayon_core.hosts.hiero.api.otio import hiero_export
|
||||
from ayon_hiero import api as phiero
|
||||
from ayon_hiero.api.otio import hiero_export
|
||||
|
||||
import hiero
|
||||
# # developer reload modules
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ from qtpy.QtGui import QPixmap
|
|||
|
||||
import hiero.ui
|
||||
|
||||
from ayon_core.hosts.hiero.api.otio import hiero_export
|
||||
from ayon_hiero.api.otio import hiero_export
|
||||
|
||||
|
||||
class PrecollectWorkfile(pyblish.api.ContextPlugin):
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from pyblish import api
|
||||
import hiero
|
||||
import math
|
||||
from ayon_core.hosts.hiero.api.otio.hiero_export import create_otio_time_range
|
||||
from ayon_hiero.api.otio.hiero_export import create_otio_time_range
|
||||
|
||||
class PrecollectRetime(api.InstancePlugin):
|
||||
"""Calculate Retiming of selected track items."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue