diff --git a/colorbleed/lib.py b/colorbleed/lib.py index 3865c00932..e4397d104d 100644 --- a/colorbleed/lib.py +++ b/colorbleed/lib.py @@ -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) diff --git a/colorbleed/plugins/maya/load/load_yeti_cache.py b/colorbleed/plugins/maya/load/load_yeti_cache.py index ec7ab11474..dd6ebbeb05 100644 --- a/colorbleed/plugins/maya/load/load_yeti_cache.py +++ b/colorbleed/plugins/maya/load/load_yeti_cache.py @@ -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