Max: Implementation of Camera Attributes Validator#6110
Conversation
|
Task linked: OP-7075 Validate Camera Attributes |
|
@LiborBatek I have updated the commit and the changelog. camera_attributes_validator.mp4Do you think that it's also good idea to add repair action for the camera attributes? |
Yeah would be nice! ...Did u manage to incorporate those |
Okay I will add it into the next commit
Yes, it was already there in the updated commit. |
There was a problem hiding this comment.
I have tested all sort of combinations of values used for validation and my findings so far being:
- Repair Func works as expected
- Validators set to
0arent taken into account as expected - Values used for validation being in
genericunits which is ok but will give different value afterRepairaction if users scene being in differentunit system- if switched later afterwards the values matches properly. - *Entering values for
Near Range: 0.1andFar Range: 999.5wont passValidatebut1and1000yes.
*I mean in an occasion that the repair did fill in correct values and they are matching in theory...still wont pass in first example.
So there are 2 issues now, question being if we should take into account Scene Units or just note it in the OP Settings via docstring that those Values being in generic units and some conversion gonna happen if not using the same.
The Validation issue seems tied to the numbers format and invalid logic for decimal values?? Now just guessing tho.
Yes I think we can mention that those default values are being in
I need to double check, it is supposed that it tied to the float format. EDIT: yes, i will fix in the next commit. |
…types & round 1 decimal places for all check values
|
Looks good for merge. @moonyuet port to ayon pls |
Already ported to ayon-core! |









Changelog Description
Implement Validate Camera Attributes in camera family in Max host
Additional info
Testing notes:
ayon+settings://max/publish/ValidateCameraAttributesorproject_settings/max/publish/ValidateCameraAttributes