mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
Maya Redshift: Skip aov file format check for Cryptomatte
This commit is contained in:
parent
0be8a8f990
commit
5f0a8d700e
1 changed files with 9 additions and 6 deletions
|
|
@ -180,14 +180,17 @@ class ValidateRenderSettings(pyblish.api.InstancePlugin):
|
|||
redshift_AOV_prefix
|
||||
))
|
||||
invalid = True
|
||||
# get aov format
|
||||
aov_ext = cmds.getAttr(
|
||||
"{}.fileFormat".format(aov), asString=True)
|
||||
|
||||
default_ext = cmds.getAttr(
|
||||
"redshiftOptions.imageFormat", asString=True)
|
||||
# check aov file format
|
||||
aov_ext = cmds.getAttr("{}.fileFormat".format(aov))
|
||||
default_ext = cmds.getAttr("redshiftOptions.imageFormat")
|
||||
aov_type = cmds.getAttr("{}.aovType".format(aov))
|
||||
if aov_type == "Cryptomatte":
|
||||
# redshift Cryptomatte AOV always uses "Cryptomatte (EXR)"
|
||||
# so we ignore validating file format for it.
|
||||
pass
|
||||
|
||||
if default_ext != aov_ext:
|
||||
elif default_ext != aov_ext:
|
||||
cls.log.error(("AOV file format is not the same "
|
||||
"as the one set globally "
|
||||
"{} != {}").format(default_ext,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue