fix string imports

This commit is contained in:
iLLiCiTiT 2021-04-01 19:10:29 +02:00
parent 4e54190ab8
commit 304a6a94fd
9 changed files with 15 additions and 15 deletions

View file

@ -1,5 +1,5 @@
import openpype.hosts.hiero.api as phiero
# from pype.hosts.hiero.api import plugin, lib
# from openpype.hosts.hiero.api import plugin, lib
# reload(lib)
# reload(plugin)
# reload(phiero)

View file

@ -1,6 +1,6 @@
from avalon import io, api
import openpype.hosts.hiero.api as phiero
# from pype.hosts.hiero.api import plugin, lib
# from openpype.hosts.hiero.api import plugin, lib
# reload(lib)
# reload(plugin)
# reload(phiero)

View file

@ -1,4 +1,4 @@
# from pype import plugins
# from openpype import plugins
import os
import json
import pyblish.api

View file

@ -2,7 +2,7 @@ from compiler.ast import flatten
from pyblish import api
from openpype.hosts.hiero import api as phiero
import hiero
# from pype.hosts.hiero.api import lib
# from openpype.hosts.hiero.api import lib
# reload(lib)
# reload(phiero)

View file

@ -44,7 +44,7 @@ publish.show(parent)
<label>Work Files ...</label>
<scriptCode><![CDATA[
import hou, os
from pype.tools import workfiles
from openpype.tools import workfiles
workfiles.show(os.environ["AVALON_WORKDIR"])
]]></scriptCode>
</scriptItem>

View file

@ -136,13 +136,13 @@ def on_open(_):
from openpype.widgets import popup
cmds.evalDeferred(
"from pype.hosts.maya.api import lib;"
"from openpype.hosts.maya.api import lib;"
"lib.remove_render_layer_observer()")
cmds.evalDeferred(
"from pype.hosts.maya.api import lib;"
"from openpype.hosts.maya.api import lib;"
"lib.add_render_layer_observer()")
cmds.evalDeferred(
"from pype.hosts.maya.api import lib;"
"from openpype.hosts.maya.api import lib;"
"lib.add_render_layer_change_observer()")
# # Update current task for the current scene
# update_task_from_path(cmds.file(query=True, sceneName=True))
@ -183,13 +183,13 @@ def on_new(_):
avalon.logger.info("Running callback on new..")
with suspended_refresh():
cmds.evalDeferred(
"from pype.hosts.maya.api import lib;"
"from openpype.hosts.maya.api import lib;"
"lib.remove_render_layer_observer()")
cmds.evalDeferred(
"from pype.hosts.maya.api import lib;"
"from openpype.hosts.maya.api import lib;"
"lib.add_render_layer_observer()")
cmds.evalDeferred(
"from pype.hosts.maya.api import lib;"
"from openpype.hosts.maya.api import lib;"
"lib.add_render_layer_change_observer()")
lib.set_context_settings()

View file

@ -22,7 +22,7 @@
},
{
"type": "action",
"command": "from pype.tools.assetcreator import app as assetcreator; assetcreator.show(context='maya')",
"command": "from openpype.tools.assetcreator import app as assetcreator; assetcreator.show(context='maya')",
"sourcetype": "python",
"title": "Asset Creator",
"tooltip": "Open the Asset Creator"

View file

@ -32,7 +32,7 @@ class RenderSetupLoader(api.Loader):
def load(self, context, name, namespace, data):
"""Load RenderSetup settings."""
from avalon.maya.pipeline import containerise
# from pype.hosts.maya.api.lib import namespaced
# from openpype.hosts.maya.api.lib import namespaced
asset = context['asset']['name']
namespace = namespace or lib.unique_namespace(

View file

@ -4,12 +4,12 @@ import six
import pyblish.api
from avalon import io
# Copy of constant `pype.modules.ftrack.lib.avalon_sync.CUST_ATTR_AUTO_SYNC`
# Copy of constant `openpype.modules.ftrack.lib.avalon_sync.CUST_ATTR_AUTO_SYNC`
CUST_ATTR_AUTO_SYNC = "avalon_auto_sync"
CUST_ATTR_GROUP = "openpype"
# Copy of `get_pype_attr` from pype.modules.ftrack.lib
# Copy of `get_pype_attr` from openpype.modules.ftrack.lib
# TODO import from openpype's ftrack module when possible to not break Python 2
def get_pype_attr(session, split_hierarchical=True):
custom_attributes = []