update regex name

This commit is contained in:
Kayla Man 2024-01-29 17:53:35 +08:00
parent b822dd0e8d
commit 5e8af09c4b
3 changed files with 4 additions and 4 deletions

View file

@ -83,7 +83,7 @@ class ValidateModelName(pyblish.api.InstancePlugin,
def process(self, instance):
if not self.is_active(instance.data):
self.log.debug("Skipping Validate Frame Range...")
self.log.debug("Skipping Validate Model Name...")
return
invalid = self.get_invalid(instance)

View file

@ -60,7 +60,7 @@
"enabled": true,
"optional": true,
"active": false,
"regex": "(?P<subset>.*)_(GEO)"
"regex": "(.*)_(?P<subset>.*)_(GEO)"
},
"ValidateLoadedPlugin": {
"enabled": false,

View file

@ -43,7 +43,7 @@ class ValidateModelNameModel(BaseSettingsModel):
optional: bool = SettingsField(title="Optional")
active: bool = SettingsField(title="Active")
regex: str = SettingsField(
"(?P<subset>.*)_(GEO)",
"(.*)_(?P<subset>.*)_(GEO)",
title="Validation regex",
description=(
"Regex for validating model name. You can use named "
@ -123,7 +123,7 @@ DEFAULT_PUBLISH_SETTINGS = {
"enabled": True,
"optional": True,
"active": False,
"regex": "(?P<subset>.*)_(GEO)"
"regex": "*_(?P<subset>.*)_(GEO)"
},
"ValidateLoadedPlugin": {
"enabled": False,