From d70ffbd3846f5949fa42eb60d740a55a166bddf1 Mon Sep 17 00:00:00 2001 From: Milan Kolar Date: Thu, 1 Apr 2021 21:48:18 +0200 Subject: [PATCH] fix maya string imports --- openpype/hosts/maya/api/__init__.py | 14 +++++++------- openpype/hosts/maya/api/attributes.py | 2 +- openpype/hosts/maya/api/menu.json | 2 +- openpype/hosts/maya/api/menu.py | 2 +- openpype/hosts/maya/api/render_setup_tools.py | 2 +- .../hosts/maya/plugins/load/load_rendersetup.py | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/openpype/hosts/maya/api/__init__.py b/openpype/hosts/maya/api/__init__.py index a3f81d6960..4697d212de 100644 --- a/openpype/hosts/maya/api/__init__.py +++ b/openpype/hosts/maya/api/__init__.py @@ -15,7 +15,7 @@ import openpype.hosts.maya from openpype.hosts.maya.lib import copy_workspace_mel from . import menu, lib -log = logging.getLogger("pype.hosts.maya") +log = logging.getLogger("openpype.hosts.maya") HOST_DIR = os.path.dirname(os.path.abspath(openpype.hosts.maya.__file__)) PLUGINS_DIR = os.path.join(HOST_DIR, "plugins") @@ -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() diff --git a/openpype/hosts/maya/api/attributes.py b/openpype/hosts/maya/api/attributes.py index a98548301a..84d1e1391f 100644 --- a/openpype/hosts/maya/api/attributes.py +++ b/openpype/hosts/maya/api/attributes.py @@ -3,7 +3,7 @@ https://github.com/Colorbleed/colorbleed-config/blob/acre/colorbleed/maya/lib_rendersetup.py Credits: Roy Nieterau (BigRoy) / Colorbleed -Modified for use in Pype +Modified for use in OpenPype """ diff --git a/openpype/hosts/maya/api/menu.json b/openpype/hosts/maya/api/menu.json index b32f295ec4..bf4d812d33 100644 --- a/openpype/hosts/maya/api/menu.json +++ b/openpype/hosts/maya/api/menu.json @@ -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" diff --git a/openpype/hosts/maya/api/menu.py b/openpype/hosts/maya/api/menu.py index 72f282f0dd..42e5c66e4a 100644 --- a/openpype/hosts/maya/api/menu.py +++ b/openpype/hosts/maya/api/menu.py @@ -127,7 +127,7 @@ def uninstall(): def install(): if cmds.about(batch=True): - log.info("Skipping pype.menu initialization in batch mode..") + log.info("Skipping openpype.menu initialization in batch mode..") return uninstall() diff --git a/openpype/hosts/maya/api/render_setup_tools.py b/openpype/hosts/maya/api/render_setup_tools.py index 9ba48310d6..2ad59810d0 100644 --- a/openpype/hosts/maya/api/render_setup_tools.py +++ b/openpype/hosts/maya/api/render_setup_tools.py @@ -5,7 +5,7 @@ Export Maya nodes from Render Setup layer as if flattened in that layer instead of exporting the defaultRenderLayer as Maya forces by default Credits: Roy Nieterau (BigRoy) / Colorbleed -Modified for use in Pype +Modified for use in OpenPype """ diff --git a/openpype/hosts/maya/plugins/load/load_rendersetup.py b/openpype/hosts/maya/plugins/load/load_rendersetup.py index 7cd536cc39..a9c96ccbc7 100644 --- a/openpype/hosts/maya/plugins/load/load_rendersetup.py +++ b/openpype/hosts/maya/plugins/load/load_rendersetup.py @@ -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.maya.api.lib import namespaced asset = context['asset']['name'] namespace = namespace or lib.unique_namespace(