repharse the actual msg for the artists

This commit is contained in:
Kayla Man 2023-05-03 22:31:43 +08:00
parent 2c61caae18
commit 9d3e15378b

View file

@ -29,15 +29,15 @@ class ValidateResolutionSetting(pyblish.api.InstancePlugin,
current_width = rt.renderwidth
current_height = rt.renderHeight
if current_width != width and current_height != height:
raise PublishValidationError("Resolution Setting"
" not aligned with DB")
raise PublishValidationError("Resolution Setting "
"not matching resolution set on asset or shot.")
if current_width != width:
raise PublishValidationError("Width in Resolution Setting "
"not aligned with DB")
"not matching resolution set on asset or shot.")
if current_height != height:
raise PublishValidationError("Height in Resolution Setting "
"not aligned with DB")
"not matching resolution set on asset or shot.")
def get_db_resolution(self, instance):
data = ["data.resolutionWidth", "data.resolutionHeight"]