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

Add ExtractBurnin to photoshop review #2124

Merged
merged 1 commit into from
Oct 17, 2021
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
9 changes: 7 additions & 2 deletions openpype/hosts/photoshop/plugins/publish/extract_review.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -53,7 +57,8 @@ def process(self, instance):
"name": "jpg",
"ext": "jpg",
"files": output_image,
"stagingDir": staging_dir
"stagingDir": staging_dir,
"tags": self.jpg_options['tags']
})
instance.data["stagingDir"] = staging_dir

Expand Down Expand Up @@ -97,7 +102,7 @@ def process(self, instance):
"frameEnd": 1,
"fps": 25,
"preview": True,
"tags": ["review", "ftrackreview"]
"tags": self.mov_options['tags']
})

# Required for extract_review plugin (L222 onwards).
Expand Down
3 changes: 2 additions & 1 deletion openpype/plugins/publish/extract_burnin.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ class ExtractBurnin(openpype.api.Extractor):
"aftereffects",
"tvpaint",
"webpublisher",
"aftereffects"
"aftereffects",
"photoshop"
# "resolve"
]
optional = True
Expand Down
12 changes: 12 additions & 0 deletions openpype/settings/defaults/project_settings/photoshop.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@
"png",
"jpg"
]
},
"ExtractReview": {
"jpg_options": {
"tags": [
]
},
"mov_options": {
"tags": [
"review",
"ftrackreview"
]
}
}
},
"workfile_builder": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}
]
}
]
},
{
Expand Down