From 11677142be824e246bdf7088075a2f5d52f0a836 Mon Sep 17 00:00:00 2001 From: wikoreman Date: Tue, 16 Oct 2018 11:08:49 +0200 Subject: [PATCH] Fetch attribute from instance for alembic export --- colorbleed/plugins/maya/publish/extract_pointcache.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/colorbleed/plugins/maya/publish/extract_pointcache.py b/colorbleed/plugins/maya/publish/extract_pointcache.py index 4cfb8c9c25..eb0bf75f66 100644 --- a/colorbleed/plugins/maya/publish/extract_pointcache.py +++ b/colorbleed/plugins/maya/publish/extract_pointcache.py @@ -32,6 +32,12 @@ class ExtractColorbleedAlembic(colorbleed.api.Extractor): start -= handles end += handles + attrs = instance.data.get("attr", "").split(";") + if not attrs: + attrs = ["cbId"] + + attr_prefixes = instance.data.get("attrPrefix", "").split(";") + # Get extra export arguments writeColorSets = instance.data.get("writeColorSets", False) @@ -44,7 +50,8 @@ class ExtractColorbleedAlembic(colorbleed.api.Extractor): options = { "step": instance.data.get("step", 1.0), - "attr": ["cbId"], + "attr": attrs, + "attrPrefix": attr_prefixes, "writeVisibility": True, "writeCreases": True, "writeColorSets": writeColorSets,