mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
Simplify logic since all values should be strings
This commit is contained in:
parent
ba3e20a712
commit
b7d4a2a747
1 changed files with 2 additions and 8 deletions
|
|
@ -349,14 +349,8 @@ def containerise(name,
|
|||
]
|
||||
|
||||
for key, value in data:
|
||||
|
||||
if isinstance(value, (int, float)):
|
||||
cmds.addAttr(container, longName=key, attributeType="short")
|
||||
cmds.setAttr(container + "." + key, value)
|
||||
|
||||
else:
|
||||
cmds.addAttr(container, longName=key, dataType="string")
|
||||
cmds.setAttr(container + "." + key, value, type="string")
|
||||
cmds.addAttr(container, longName=key, dataType="string")
|
||||
cmds.setAttr(container + "." + key, value, type="string")
|
||||
|
||||
main_container = cmds.ls(AVALON_CONTAINERS, type="objectSet")
|
||||
if not main_container:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue