updated names of workio methods

This commit is contained in:
iLLiCiTiT 2019-09-20 18:16:30 +02:00
parent ba02f735d0
commit c14f8792fa
5 changed files with 10 additions and 10 deletions

View file

@ -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)

View file

@ -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)

View file

@ -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

View file

@ -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",

View file

@ -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