OpenPype icon indicating copy to clipboard operation
OpenPype copied to clipboard

Max: Implementation of the validator for model name

Open moonyuet opened this issue 1 year ago • 4 comments

Changelog Description

Implement the validator for model name in 3dsmax

Additional info

The validation regex by default is (.*)_(?P<subset>.*)_(GEO) and your model name should be {Some name}_{SubsetName}_GEO

Testing notes:

  1. Go to OP/AYON Settings
  2. Turn on Validate Model Name
  3. Set your preferred validation regex for checking your model name
  4. Validate Model Name would check your name accordingly with your validation regex

moonyuet avatar Jan 25 '24 09:01 moonyuet

Task linked: OP-7076 Validate Model Name

ynbot avatar Jan 25 '24 09:01 ynbot

When inspecting the Validator Settings in Ayon,

is that regex correct? I mean this is how it looks when defaults (obviously not matching the one mentioned above):

image

LiborBatek avatar Feb 05 '24 12:02 LiborBatek

When inspecting the Validator Settings in Ayon,

is that regex correct? I mean this is how it looks when defaults (obviously not matching the one mentioned above):

image

No, it should be (.*)_(?P<subset>.*)_(GEO), I already update this in the latest commit.

moonyuet avatar Feb 05 '24 12:02 moonyuet

@LiborBatek Can you please test again to see if it works? I have adjusted the action script a little bit, which means #6198 and #6110 possibly need some re-tests.

moonyuet avatar Feb 08 '24 12:02 moonyuet

closing: won't do - done in AYON (https://github.com/ynput/ayon-core/pull/59)

dee-ynput avatar Aug 14 '24 16:08 dee-ynput