mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
updated call to attributes_values function
This commit is contained in:
parent
252824ff9f
commit
14d4294608
2 changed files with 6 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue