Max: Implementation of the validator for model name #59
Conversation
|
Im getting this error when validating the publish: |
This happens mainly because the |
client/ayon_core/hosts/max/plugins/publish/validate_model_name.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
I think we should make it more artist friendly, especially validator that will trigger probably very often. I know that we are not using it on many places, but publisher has already ability to show stuff.
Maybe not the greatest example, but it is using PublishXmlValidationError and xml file located in help directory.
I do understand that this is pretty straightforward validation that is requiring simple action from artist, so I stating it here mainly as a reference.
client/ayon_core/hosts/max/plugins/publish/validate_model_name.py
Outdated
Show resolved
Hide resolved
client/ayon_core/hosts/max/plugins/publish/validate_model_name.py
Outdated
Show resolved
Hide resolved
antirotor
left a comment
There was a problem hiding this comment.
apart that json file it looks a works great
There was a problem hiding this comment.
this shouldn't probably be here in this PR
antirotor
left a comment
There was a problem hiding this comment.
great, thanks for the changes!


Changelog Description
Ported from Openpype: ynput/OpenPype#6164
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: