From 321df3b4adc3ff8dfdc90506503fa7de82defc12 Mon Sep 17 00:00:00 2001 From: aardschok Date: Fri, 29 Dec 2017 14:54:42 +0100 Subject: [PATCH] get writeColorSets from instance and pass to export command --- colorbleed/plugins/maya/publish/extract_pointcache.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/colorbleed/plugins/maya/publish/extract_pointcache.py b/colorbleed/plugins/maya/publish/extract_pointcache.py index 727649ccf5..878bb14d6c 100644 --- a/colorbleed/plugins/maya/publish/extract_pointcache.py +++ b/colorbleed/plugins/maya/publish/extract_pointcache.py @@ -32,6 +32,9 @@ class ExtractColorbleedAlembic(colorbleed.api.Extractor): start -= handles end += handles + # Get extra export arguments + writeColorSets = instance.data.get("writeColorSets", False) + self.log.info("Extracting animation..") dirname = self.staging_dir(instance) @@ -51,6 +54,7 @@ class ExtractColorbleedAlembic(colorbleed.api.Extractor): "attr": ["cbId"], "writeVisibility": True, "writeCreases": True, + "writeColorSets": writeColorSets, "uvWrite": True, "selection": True})