mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
use RuntimeError instead of Exception and rename the validator
This commit is contained in:
parent
d206a64e93
commit
93c5d507a3
1 changed files with 3 additions and 2 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import os
|
||||
from maya import cmds
|
||||
|
||||
import pyblish.api
|
||||
|
|
@ -13,7 +14,7 @@ class ValidateMayaColorSpace(pyblish.api.InstancePlugin):
|
|||
order = ValidateContentsOrder
|
||||
families = ['look']
|
||||
hosts = ['maya']
|
||||
label = 'Maya Color Space'
|
||||
label = 'Color Management with maketx'
|
||||
|
||||
def process(self, instance):
|
||||
ocio_maya = cmds.colorManagementPrefs(q=True,
|
||||
|
|
@ -22,4 +23,4 @@ class ValidateMayaColorSpace(pyblish.api.InstancePlugin):
|
|||
maketx = instance.data["maketx"]
|
||||
|
||||
if ocio_maya and maketx:
|
||||
raise Exception("Maya is color managed and maketx option is on. OpenPype doesn't support this combination yet.") # noqa
|
||||
raise RuntimeError("Maya is color managed and maketx option is on. OpenPype doesn't support this combination yet.") # noqa
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue