Max: Implementation of the validator for model name #6164
Max: Implementation of the validator for model name #6164
Conversation
|
Task linked: OP-7076 Validate Model Name |
LiborBatek
left a comment
There was a problem hiding this comment.
The Validator for Naming works as expected and follows the regex set in Ayon Settings for max addon.
I have set mine to:
Validator kicked in when my geometry had different naming:
So this worked fine. Small note tho: the Select Invalid didnt do anything.
After adjusting my geometry naming following the one set in Validator all Published OK and without any issues.

LiborBatek
left a comment
There was a problem hiding this comment.
Now the regex being correctly prefilled in the addon settings.
Validator works correctly, but the Select Invalid does not work ATM giving error:
Traceback (most recent call last):
File "C:\Users\lbate\AppData\Local\Ynput\AYON\dependency_packages\ayon_2401161802_windows.zip\dependencies\pyblish\plugin.py", line 527, in __explicit_process
runner(*args)
File "C:\Users\lbate\AppData\Local\Ynput\AYON\addons\openpype_3.18.7-nightly.1\openpype\hosts\max\api\action.py", line 34, in process
invalid_names = [obj.name for obj in invalid]
File "C:\Users\lbate\AppData\Local\Ynput\AYON\addons\openpype_3.18.7-nightly.1\openpype\hosts\max\api\action.py", line 34, in <listcomp>
invalid_names = [obj.name for obj in invalid]
AttributeError: 'tuple' object has no attribute 'name'
|
@LiborBatek Can you please test again to see if it works? |
|
closing: won't do - done in AYON (ynput/ayon-core#59) |


Changelog Description
Implement the validator for model name in 3dsmax
Additional info
The validation regex by default is
(.*)_(?P<subset>.*)_(GEO)andyour model name should be {Some name}_{SubsetName}_GEO
Testing notes: