Add photoshop extractReview plugin options for representations tags

This commit is contained in:
Jérôme LORRAIN 2021-10-12 16:41:02 +02:00
parent 79c096077d
commit e969cd1883
4 changed files with 54 additions and 4 deletions

View file

@ -17,6 +17,10 @@ class ExtractReview(openpype.api.Extractor):
hosts = ["photoshop"]
families = ["review"]
# Extract Options
jpg_options = None
mov_options = None
def process(self, instance):
staging_dir = self.staging_dir(instance)
self.log.info("Outputting image to {}".format(staging_dir))
@ -53,7 +57,8 @@ class ExtractReview(openpype.api.Extractor):
"name": "jpg",
"ext": "jpg",
"files": output_image,
"stagingDir": staging_dir
"stagingDir": staging_dir,
"tags": self.jpg_options['tags']
})
instance.data["stagingDir"] = staging_dir
@ -97,7 +102,7 @@ class ExtractReview(openpype.api.Extractor):
"frameEnd": 1,
"fps": 25,
"preview": True,
"tags": ["review", "ftrackreview"]
"tags": self.mov_options['tags']
})
# Required for extract_review plugin (L222 onwards).

View file

@ -45,7 +45,8 @@ class ExtractBurnin(openpype.api.Extractor):
"aftereffects",
"tvpaint",
"webpublisher",
"aftereffects"
"aftereffects",
"photoshop"
# "resolve"
]
optional = True

View file

@ -17,6 +17,18 @@
"png",
"jpg"
]
},
"ExtractReview": {
"jpg_options": {
"tags": [
]
},
"mov_options": {
"tags": [
"review",
"ftrackreview"
]
}
}
},
"workfile_builder": {

View file

@ -60,7 +60,39 @@
"object_type": "text"
}
]
}
},
{
"type": "dict",
"collapsible": true,
"key": "ExtractReview",
"label": "Extract Review",
"children": [
{
"type": "dict",
"collapsible": false,
"key": "jpg_options",
"label": "Extracted jpg Options",
"children": [
{
"type": "schema",
"name": "schema_representation_tags"
}
]
},
{
"type": "dict",
"collapsible": false,
"key": "mov_options",
"label": "Extracted mov Options",
"children": [
{
"type": "schema",
"name": "schema_representation_tags"
}
]
}
]
}
]
},
{