-
Notifications
You must be signed in to change notification settings - Fork 129
Max: Implementation of Camera Attributes Validator #6110
Max: Implementation of Camera Attributes Validator #6110
Conversation
Task linked: OP-7075 Validate Camera Attributes |
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.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
0
arent taken into account as expected - Values used for validation being in
generic
units which is ok but will give different value afterRepair
action if users scene being in differentunit system
- if switched later afterwards the values matches properly. - *Entering values for
Near Range: 0.1
andFar Range: 999.5
wont passValidate
but1
and1000
yes.
*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
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.
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/ValidateCameraAttributes
orproject_settings/max/publish/ValidateCameraAttributes