Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Hiero: Add OP settings and convert in plugin - OP-8338 #6232

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions openpype/hosts/hiero/plugins/publish/collect_clip_effects.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,13 @@ def process(self, instance):

subset_split.insert(0, "effect")

effect_categories = {
x["name"]: x["effect_classes"] for x in self.effect_categories
}
# Need to convert to dict for AYON settings. This isinstance check can
# be removed in the future when OpenPype is no longer.
effect_categories = self.effect_categories
if isinstance(self.effect_categories, list):
effect_categories = {
x["name"]: x["effect_classes"] for x in self.effect_categories
}

category_by_effect = {"": ""}
for key, values in effect_categories.items():
Expand Down
4 changes: 4 additions & 0 deletions openpype/settings/defaults/project_settings/hiero.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@
"tags_addition": [
"review"
]
},
"CollectClipEffects": {
"enabled": true,
"effect_categories": {}
}
},
"filters": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,31 @@
"label": "Tags addition"
}
]
},
{
"type": "dict",
"collapsible": true,
"checkbox_key": "enabled",
"key": "CollectClipEffects",
"label": "Collect Clip Effects",
"is_group": true,
"children": [
{
"type": "boolean",
"key": "enabled",
"label": "Enabled"
},
{
"type": "dict-modifiable",
"key": "effect_categories",
"label": "Effect Categories",
"object_type": {
"type": "list",
"key": "effects_classes",
"object_type": "text"
}
}
]
}
]
},
Expand Down
Loading