mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
Merge branch 'PLN-130' of https://github.com/aardschok/colorbleed-config into PLN-130
This commit is contained in:
commit
5dff6356bc
2 changed files with 4 additions and 2 deletions
|
|
@ -242,8 +242,6 @@ def collect_container_metadata(container):
|
|||
hostlib = importlib.import_module(package_name)
|
||||
|
||||
if not hasattr(hostlib, "get_additional_data"):
|
||||
print("{} has no function called "
|
||||
"get_additional_data".format(package_name))
|
||||
return {}
|
||||
|
||||
return hostlib.get_additional_data(container)
|
||||
|
|
|
|||
|
|
@ -179,10 +179,14 @@ class YetiCacheLoader(api.Loader):
|
|||
# Apply attributes to pgYetiMaya node
|
||||
kwargs = {}
|
||||
for attr, value in node_settings["attrs"].items():
|
||||
if value is None:
|
||||
continue
|
||||
|
||||
attribute = "%s.%s" % (yeti_node, attr)
|
||||
if isinstance(value, (str, unicode)):
|
||||
cmds.setAttr(attribute, value, type="string")
|
||||
continue
|
||||
|
||||
cmds.setAttr(attribute, value, **kwargs)
|
||||
|
||||
# Ensure the node has no namespace identifiers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue