diff --git a/colorbleed/plugins/maya/create/colorbleed_animation.py b/colorbleed/plugins/maya/create/colorbleed_animation.py index 6a113bf74c..16f321ee68 100644 --- a/colorbleed/plugins/maya/create/colorbleed_animation.py +++ b/colorbleed/plugins/maya/create/colorbleed_animation.py @@ -32,3 +32,6 @@ class CreateAnimation(avalon.maya.Creator): # Include the groups above the out_SET content self.data["includeParentHierarchy"] = False # Include parent groups + + # Default to exporting world-space + self.data["worldSpace"] = True diff --git a/colorbleed/plugins/maya/create/colorbleed_pointcache.py b/colorbleed/plugins/maya/create/colorbleed_pointcache.py index 2fa0f6cb36..2738ff6ddf 100644 --- a/colorbleed/plugins/maya/create/colorbleed_pointcache.py +++ b/colorbleed/plugins/maya/create/colorbleed_pointcache.py @@ -20,6 +20,7 @@ class CreatePointCache(avalon.maya.Creator): self.data["renderableOnly"] = False # Only renderable visible shapes self.data["visibleOnly"] = False # only nodes that are visible self.data["includeParentHierarchy"] = False # Include parent groups + self.data["worldSpace"] = True # Default to exporting world-space # Add options for custom attributes self.data["attr"] = "" diff --git a/colorbleed/plugins/maya/publish/extract_animation.py b/colorbleed/plugins/maya/publish/extract_animation.py index 53e172fa56..be56c6c937 100644 --- a/colorbleed/plugins/maya/publish/extract_animation.py +++ b/colorbleed/plugins/maya/publish/extract_animation.py @@ -55,7 +55,8 @@ class ExtractColorbleedAnimation(colorbleed.api.Extractor): "writeVisibility": True, "writeCreases": True, "uvWrite": True, - "selection": True + "selection": True, + "worldSpace": instance.data.get("worldSpace", True) } if not instance.data.get("includeParentHierarchy", True): diff --git a/colorbleed/plugins/maya/publish/extract_pointcache.py b/colorbleed/plugins/maya/publish/extract_pointcache.py index 1e3b4a2ea2..3fcdf3cb58 100644 --- a/colorbleed/plugins/maya/publish/extract_pointcache.py +++ b/colorbleed/plugins/maya/publish/extract_pointcache.py @@ -57,7 +57,8 @@ class ExtractColorbleedAlembic(colorbleed.api.Extractor): "writeCreases": True, "writeColorSets": writeColorSets, "uvWrite": True, - "selection": True + "selection": True, + "worldSpace": instance.data.get("worldSpace", True) } if not instance.data.get("includeParentHierarchy", True):