From 14d4294608be66dd96cf5b442e4dc7afbf09e8ee Mon Sep 17 00:00:00 2001 From: wijnand Date: Mon, 9 Jul 2018 17:04:02 +0200 Subject: [PATCH] updated call to attributes_values function --- colorbleed/plugins/maya/publish/extract_look.py | 3 ++- colorbleed/plugins/maya/publish/extract_yeti_rig.py | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/colorbleed/plugins/maya/publish/extract_look.py b/colorbleed/plugins/maya/publish/extract_look.py index d6767bea49..7e8fc2b436 100644 --- a/colorbleed/plugins/maya/publish/extract_look.py +++ b/colorbleed/plugins/maya/publish/extract_look.py @@ -7,6 +7,7 @@ from maya import cmds import pyblish.api import avalon.maya import colorbleed.api +import colorbleed.maya.lib as maya from cb.utils.maya import context @@ -65,7 +66,7 @@ class ExtractLook(colorbleed.api.Extractor): with context.renderlayer(layer): # TODO: Ensure membership edits don't become renderlayer overrides with context.empty_sets(sets, force=True): - with context.attribute_values(remap): + with maya.attribute_values(remap): with avalon.maya.maintained_selection(): cmds.select(sets, noExpand=True) cmds.file(maya_path, diff --git a/colorbleed/plugins/maya/publish/extract_yeti_rig.py b/colorbleed/plugins/maya/publish/extract_yeti_rig.py index 923d9a6ba9..7806c0642f 100644 --- a/colorbleed/plugins/maya/publish/extract_yeti_rig.py +++ b/colorbleed/plugins/maya/publish/extract_yeti_rig.py @@ -6,7 +6,7 @@ from maya import cmds import avalon.maya.lib as lib import colorbleed.api -from cb.utils.maya import context +import colorbleed.maya.lib as maya @contextlib.contextmanager @@ -25,7 +25,7 @@ def disconnected_attributes(settings, members): try: source = sources[0] except IndexError: - print "source_id:", input["sourceID"] + print("source_id:", input["sourceID"]) continue # Get destination shapes (the shapes used as hook up) @@ -52,7 +52,7 @@ def disconnected_attributes(settings, members): try: cmds.connectAttr(connection[0], connection[1]) except Exception as e: - print e, + print(e) continue @@ -112,7 +112,7 @@ class ExtractYetiRig(colorbleed.api.Extractor): nodes = instance.data["setMembers"] with disconnected_attributes(settings, members): - with context.attribute_values(attr_value): + with maya.attribute_values(attr_value): cmds.select(nodes, noExpand=True) cmds.file(maya_path, force=True,