add an include parent hierarchy option in animation creator plugin of maya

This commit is contained in:
Thomas Fricard 2023-03-16 16:52:06 +01:00 committed by Milan Kolar
parent 58d2c25247
commit f050a024aa
3 changed files with 9 additions and 1 deletions

View file

@ -13,6 +13,7 @@ class CreateAnimation(plugin.Creator):
icon = "male"
write_color_sets = False
write_face_sets = False
include_parent_hierarchy = False
include_user_defined_attributes = False
def __init__(self, *args, **kwargs):
@ -37,7 +38,8 @@ class CreateAnimation(plugin.Creator):
self.data["visibleOnly"] = False
# Include the groups above the out_SET content
self.data["includeParentHierarchy"] = False # Include parent groups
# Include parent groups
self.data["includeParentHierarchy"] = self.include_parent_hierarchy
# Default to exporting world-space
self.data["worldSpace"] = True