Default to world-space output for pointcache+animation, plus add toggle

This commit is contained in:
Roy Nieterau 2019-01-21 17:33:44 +01:00
parent abf22276e7
commit f15577a9f5
4 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -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"] = ""

View file

@ -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):

View file

@ -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):