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

Commit

Permalink
Merge pull request #2124 from Ellipsanime/add_photoshop_burnin_option
Browse files Browse the repository at this point in the history
  • Loading branch information
mkolar authored Oct 17, 2021
2 parents 4c1266d + e969cd1 commit c3c3924
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 4 deletions.
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

0 comments on commit c3c3924

Please sign in to comment.