From c14f8792fafc83e6ba0a4860a9ab24c7fb8750e5 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 20 Sep 2019 18:16:30 +0200 Subject: [PATCH] updated names of workio methods --- pype/houdini/__init__.py | 2 +- pype/maya/__init__.py | 2 +- pype/maya/customize.py | 4 ++-- pype/nukestudio/__init__.py | 8 ++++---- pype/nukestudio/workio.py | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pype/houdini/__init__.py b/pype/houdini/__init__.py index 12b0b36de5..08afd97e41 100644 --- a/pype/houdini/__init__.py +++ b/pype/houdini/__init__.py @@ -77,7 +77,7 @@ def on_open(*args): # Show outdated pop-up def _on_show_inventory(): - import avalon.tools.cbsceneinventory as tool + import avalon.tools.sceneinventory as tool tool.show(parent=parent) dialog = popup.Popup(parent=parent) diff --git a/pype/maya/__init__.py b/pype/maya/__init__.py index a87ffe495d..b4dbc52bc8 100644 --- a/pype/maya/__init__.py +++ b/pype/maya/__init__.py @@ -178,7 +178,7 @@ def on_open(_): # Show outdated pop-up def _on_show_inventory(): - import avalon.tools.cbsceneinventory as tool + import avalon.tools.sceneinventory as tool tool.show(parent=parent) dialog = popup.Popup(parent=parent) diff --git a/pype/maya/customize.py b/pype/maya/customize.py index 61d7c283d2..8bd7052d9e 100644 --- a/pype/maya/customize.py +++ b/pype/maya/customize.py @@ -75,8 +75,8 @@ def override_toolbox_ui(): "res") icons = os.path.join(res, "icons") - import avalon.tools.cbsceneinventory as inventory - import avalon.tools.cbloader as loader + import avalon.tools.sceneinventory as inventory + import avalon.tools.loader as loader from avalon.maya.pipeline import launch_workfiles_app import mayalookassigner diff --git a/pype/nukestudio/__init__.py b/pype/nukestudio/__init__.py index 9283e732af..10053eb8bb 100644 --- a/pype/nukestudio/__init__.py +++ b/pype/nukestudio/__init__.py @@ -5,8 +5,8 @@ from avalon import api as avalon from pyblish import api as pyblish from .workio import ( - open, - save, + open_file, + save_file, current_file, has_unsaved_changes, file_extensions, @@ -21,8 +21,8 @@ from .tags import add_tags_from_presets __all__ = [ # Workfiles API - "open", - "save", + "open_file", + "save_file", "current_file", "has_unsaved_changes", "file_extensions", diff --git a/pype/nukestudio/workio.py b/pype/nukestudio/workio.py index eadd8322cd..3b6b3a56c9 100644 --- a/pype/nukestudio/workio.py +++ b/pype/nukestudio/workio.py @@ -15,7 +15,7 @@ def has_unsaved_changes(): return True -def save(filepath): +def save_file(filepath): project = hiero.core.projects()[-1] if project: project.saveAs(filepath) @@ -24,7 +24,7 @@ def save(filepath): project.saveAs(filepath) -def open(filepath): +def open_file(filepath): hiero.core.openProject(filepath) return True