diff --git a/openpype/tools/mayalookassigner/models.py b/openpype/tools/mayalookassigner/models.py index 233c84db542..39cab83c618 100644 --- a/openpype/tools/mayalookassigner/models.py +++ b/openpype/tools/mayalookassigner/models.py @@ -2,9 +2,9 @@ from Qt import QtCore -from avalon.tools import models from avalon.vendor import qtawesome from avalon.style import colors +from openpype.tools.utils import models class AssetModel(models.TreeModel): diff --git a/openpype/tools/mayalookassigner/vray_proxies.py b/openpype/tools/mayalookassigner/vray_proxies.py index ecc9a2a8738..ef0d9170c46 100644 --- a/openpype/tools/mayalookassigner/vray_proxies.py +++ b/openpype/tools/mayalookassigner/vray_proxies.py @@ -10,11 +10,9 @@ import alembic.Abc from maya import cmds -import avalon.io as io -import avalon.maya -import avalon.api as api +from avalon import io, api -import openpype.hosts.maya.api.lib as lib +from openpype.hosts.maya.api import lib log = logging.getLogger(__name__) @@ -203,7 +201,7 @@ def load_look(version_id): raise RuntimeError("Could not find LookLoader, this is a bug") # Reference the look file - with avalon.maya.maintained_selection(): + with lib.maintained_selection(): container_node = api.load(loader, look_representation) return cmds.sets(container_node, query=True) diff --git a/openpype/tools/mayalookassigner/widgets.py b/openpype/tools/mayalookassigner/widgets.py index c78fcc460e3..d575e647ce5 100644 --- a/openpype/tools/mayalookassigner/widgets.py +++ b/openpype/tools/mayalookassigner/widgets.py @@ -16,8 +16,6 @@ from maya import cmds -MODELINDEX = QtCore.QModelIndex() - class AssetOutliner(QtWidgets.QWidget): refreshed = QtCore.Signal()