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

View file

@ -147,6 +147,7 @@
"enabled": true,
"write_color_sets": false,
"write_face_sets": false,
"include_parent_hierarchy": false,
"include_user_defined_attributes": false,
"defaults": [
"Main"

View file

@ -132,6 +132,11 @@
"key": "write_face_sets",
"label": "Write Face Sets"
},
{
"type": "boolean",
"key": "include_parent_hierarchy",
"label": "Include Parent Hierarchy"
},
{
"type": "boolean",
"key": "include_user_defined_attributes",