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"]
order = pyblish.api.CollectorOrder + 0.1
publish = True
def process(self, context):
family = "review"
subset = get_subset_name(
@ -45,5 +47,6 @@ class CollectReview(pyblish.api.ContextPlugin):
"family": family,
"families": [],
"representations": [],
"asset": os.environ["AVALON_ASSET"]
"asset": os.environ["AVALON_ASSET"],
"publish": self.publish
})

View file

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

View file

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