Maya: Validate shader name - OP-5903 (#4971)

* Fix regex matching.

* Add active setting

* Update openpype/hosts/maya/plugins/publish/validate_shader_name.py
This commit is contained in:
Toke Jepsen 2023-05-15 14:10:49 +02:00 committed by GitHub
parent 0845ba29dd
commit 40d4fea857
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 10 deletions

View file

@ -734,6 +734,7 @@
"ValidateShaderName": {
"enabled": false,
"optional": true,
"active": true,
"regex": "(?P<asset>.*)_(.*)_SHD"
},
"ValidateShadingEngine": {

View file

@ -126,6 +126,11 @@
"key": "optional",
"label": "Optional"
},
{
"type": "boolean",
"key": "active",
"label": "Active"
},
{
"type": "label",
"label": "Shader name regex can use named capture group <b>asset</b> to validate against current asset name.<p><b>Example:</b><br/><code>^.*(?P=&lt;asset&gt;.+)_SHD</code></p>"