Refactors explicit resolution collection

Changes the collector order to ensure correct execution.

Renames the "Override Resolution" label to "Force product resolution" for clarity.

Removes default resolution values from server settings. The explicit resolution is intended to be defined on the instance level, not as a global default.
This commit is contained in:
Jakub Jezek 2025-05-08 17:33:08 +02:00
parent 93b59710b2
commit 753960ca9a
No known key found for this signature in database
GPG key ID: 06DBD609ADF27FD9
2 changed files with 3 additions and 9 deletions

View file

@ -11,7 +11,7 @@ class CollectExplicitResolution(
"""Collect explicit user defined resolution attributes for instances"""
label = "Choose Explicit Resolution"
order = pyblish.api.CollectorOrder + 0.49
order = pyblish.api.CollectorOrder - 0.091
settings_category = "core"
enabled = False
@ -99,6 +99,6 @@ class CollectExplicitResolution(
"explicit_resolution",
items,
default="Don't override",
label="Override Resolution",
label="Force product resolution",
),
]

View file

@ -1244,13 +1244,7 @@ DEFAULT_PUBLISH_VALUES = {
"product_types": [
"shot"
],
"options": [
{
"width": 2048,
"height": 1080,
"aspect_ratio": 1.5,
}
]
"options": []
},
"ValidateEditorialAssetName": {
"enabled": True,