Merge pull request #3885 from pypeclub/feature/OP-3943_Photoshop-review-can-be-turned-off

Photoshop: review can be turned off
This commit is contained in:
Petr Kalis 2022-09-22 11:30:48 +02:00 committed by GitHub
commit 7d598e1728
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 1 deletions

View file

@ -25,6 +25,8 @@ class CollectReview(pyblish.api.ContextPlugin):
hosts = ["photoshop"] hosts = ["photoshop"]
order = pyblish.api.CollectorOrder + 0.1 order = pyblish.api.CollectorOrder + 0.1
publish = True
def process(self, context): def process(self, context):
family = "review" family = "review"
subset = get_subset_name( subset = get_subset_name(
@ -45,5 +47,6 @@ class CollectReview(pyblish.api.ContextPlugin):
"family": family, "family": family,
"families": [], "families": [],
"representations": [], "representations": [],
"asset": os.environ["AVALON_ASSET"] "asset": os.environ["AVALON_ASSET"],
"publish": self.publish
}) })

View file

@ -15,6 +15,9 @@
"CollectInstances": { "CollectInstances": {
"flatten_subset_template": "" "flatten_subset_template": ""
}, },
"CollectReview": {
"publish": true
},
"CollectVersion": { "CollectVersion": {
"enabled": false "enabled": false
}, },

View file

@ -134,6 +134,18 @@
{ {
"type": "dict", "type": "dict",
"collapsible": true, "collapsible": true,
"key": "CollectReview",
"label": "Collect Review",
"children": [
{
"type": "boolean",
"key": "publish",
"label": "Active"
}
]
},
{
"type": "dict",
"key": "CollectVersion", "key": "CollectVersion",
"label": "Collect Version", "label": "Collect Version",
"children": [ "children": [