add the validator into the settings

This commit is contained in:
Kayla Man 2023-01-05 11:53:17 +08:00
parent e9b149ee6a
commit e436dbb57e
3 changed files with 9 additions and 1 deletions

View file

@ -15,7 +15,6 @@ class ValidateMayaColorSpace(pyblish.api.InstancePlugin):
families = ['look']
hosts = ['maya']
label = 'Maya Color Space'
optional = True
def process(self, instance):
ocio_maya = cmds.colorManagementPrefs(q=True,

View file

@ -306,6 +306,11 @@
"optional": true,
"active": true
},
"ValidateMayaColorSpace": {
"enabled": true,
"optional": true,
"active": true
},
"ValidateAttributes": {
"enabled": false,
"attributes": {}

View file

@ -144,6 +144,10 @@
{
"key": "ValidateShadingEngine",
"label": "Validate Look Shading Engine Naming"
},
{
"key": "ValidateMayaColorSpace",
"label": "ValidateMayaColorSpace"
}
]
},