flame: implementing keep_original_representation switch

This commit is contained in:
Jakub Jezek 2022-06-15 15:20:34 +02:00
parent 09e92ebad8
commit be328e5396
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -22,6 +22,8 @@ class ExtractSubsetResources(openpype.api.Extractor):
hosts = ["flame"]
# plugin defaults
keep_original_representation = False
default_presets = {
"thumbnail": {
"active": True,
@ -44,7 +46,9 @@ class ExtractSubsetResources(openpype.api.Extractor):
export_presets_mapping = {}
def process(self, instance):
if "representations" not in instance.data:
if not self.keep_original_representation:
# remove previeous representation if not needed
instance.data["representations"] = []
# flame objects