mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
use .format instead of %s
This commit is contained in:
parent
877facc5b8
commit
cff9242567
1 changed files with 9 additions and 8 deletions
|
|
@ -49,17 +49,17 @@ class ValidateReviewColorspace(pyblish.api.InstancePlugin):
|
||||||
# 'Color Correct' parm to be set to 'OpenColorIO'
|
# 'Color Correct' parm to be set to 'OpenColorIO'
|
||||||
rop_node.setParms({"colorcorrect": 2})
|
rop_node.setParms({"colorcorrect": 2})
|
||||||
cls.log.debug(
|
cls.log.debug(
|
||||||
"'Color Correct' parm on '%s' has been set to"
|
"'Color Correct' parm on '{}' has been set to"
|
||||||
" 'OpenColorIO'", rop_node
|
" 'OpenColorIO'".format(rop_node)
|
||||||
)
|
)
|
||||||
|
|
||||||
if rop_node.evalParm("ociocolorspace") not in \
|
if rop_node.evalParm("ociocolorspace") not in \
|
||||||
hou.Color.ocio_spaces():
|
hou.Color.ocio_spaces():
|
||||||
|
|
||||||
cls.log.error(
|
cls.log.error(
|
||||||
"'OCIO Colorspace' value on '%s' is not valid, "
|
"'OCIO Colorspace' value on '{}' is not valid, "
|
||||||
"select a valid option from the dropdown menu.",
|
"select a valid option from the dropdown menu."
|
||||||
rop_node
|
.format(rop_node)
|
||||||
)
|
)
|
||||||
return rop_node
|
return rop_node
|
||||||
|
|
||||||
|
|
@ -88,7 +88,8 @@ class ValidateReviewColorspace(pyblish.api.InstancePlugin):
|
||||||
|
|
||||||
rop_node.setParms({"ociocolorspace": default_view_space})
|
rop_node.setParms({"ociocolorspace": default_view_space})
|
||||||
cls.log.debug(
|
cls.log.debug(
|
||||||
"'OCIO Colorspace' parm on '%s' has been set to "
|
"'OCIO Colorspace' parm on '{}' has been set to "
|
||||||
"the default view color space '%s'",
|
"the default view color space '{}'"
|
||||||
default_view_space, rop_node
|
.formate(rop_node, default_view_space)
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue