-
Notifications
You must be signed in to change notification settings - Fork 128
Max: Implementation of the validator for model name #6164
Conversation
Task linked: OP-7076 Validate Model Name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: