mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Fix collecting and assigning enum values
This commit is contained in:
parent
cf4fd979cb
commit
2cb2ba00b7
2 changed files with 5 additions and 1 deletions
|
|
@ -556,7 +556,7 @@ class CollectLook(pyblish.api.InstancePlugin):
|
|||
continue
|
||||
if cmds.getAttr(attribute, type=True) == "message":
|
||||
continue
|
||||
node_attributes[attr] = cmds.getAttr(attribute)
|
||||
node_attributes[attr] = cmds.getAttr(attribute, asString=True)
|
||||
# Only include if there are any properties we care about
|
||||
if not node_attributes:
|
||||
continue
|
||||
|
|
|
|||
|
|
@ -206,7 +206,11 @@ def assign_look(standin, subset):
|
|||
)
|
||||
continue
|
||||
|
||||
if isinstance(value, str):
|
||||
value = "'{}'".format(value)
|
||||
|
||||
assignment = "{}={}".format(ATTRIBUTE_MAPPING[attr], value)
|
||||
|
||||
for node in edit["nodes"]:
|
||||
node_assignments[node].append(assignment)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue