From 133524880e601511fbcdc91ed68fc4bd2104a823 Mon Sep 17 00:00:00 2001 From: aardschok Date: Mon, 23 Oct 2017 12:24:57 +0200 Subject: [PATCH] added warning for gpu caches, no full support yet --- .../plugins/maya/publish/collect_setdress.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/colorbleed/plugins/maya/publish/collect_setdress.py b/colorbleed/plugins/maya/publish/collect_setdress.py index e019183041..0f405d5cf3 100644 --- a/colorbleed/plugins/maya/publish/collect_setdress.py +++ b/colorbleed/plugins/maya/publish/collect_setdress.py @@ -17,6 +17,10 @@ class CollectSetDress(pyblish.api.InstancePlugin): * Compatible loader * Matrix per instance * Namespace + + Note: GPU caches are currently not supported in the pipeline. There is no + logic yet which supports the swapping of GPU cache to renderable objects. + """ order = pyblish.api.CollectorOrder + 0.49 @@ -39,13 +43,19 @@ class CollectSetDress(pyblish.api.InstancePlugin): if root not in instance_lookup: continue - # Retrieve all matrix data + # Retrieve the hierarchy parent = cmds.listRelatives(root, parent=True, fullPath=True)[0] hierarchy_nodes.append(parent) + # Temporary warning for GPU cache which are not supported yet + loader = container["loader"] + if loader == "GpuCacheLoader": + self.log.warning("GPU Cache Loader is currently not supported" + "in the pipeline, we will export it tho") + # Gather info for new data entry representation_id = container["representation"] - instance_data = {"loader": container["loader"], + instance_data = {"loader": loader, "parent": parent, "namespace": container["namespace"]}