Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max: Using task attributes for validate frame range and validate resolution setting #342

Conversation

moonyuet
Copy link
Member

@moonyuet moonyuet commented Apr 2, 2024

Changelog Description

Align to use the data from task entity in regard to other hosts

Additional info

n/a

Testing notes:

  1. Launch Max
  2. Create Render Instance/Review Instance
  3. Publish

@ynbot ynbot added type: enhancement Improvement of existing functionality or minor addition size/XS labels Apr 2, 2024
Copy link
Member

@LiborBatek LiborBatek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has been tested in max 2024 and works ok for render instance

validates well against frame range set in the database for current folder

Screenshot 2024-04-03 103523

and also for Resolution

Screenshot 2024-04-03 103101

My only concern is when using Review instance it does not validate against resolution and just ignores it...it seems that for this instance type we do not validate for resolution...I think we should include an optional settings for that too (as on render instance type)

Screenshot 2024-04-03 103403

@moonyuet
Copy link
Member Author

moonyuet commented Apr 3, 2024

Has been tested in max 2024 and works ok for render instance

validates well against frame range set in the database for current folder

Screenshot 2024-04-03 103523 and also for `Resolution`

Screenshot 2024-04-03 103101

My only concern is when using Review instance it does not validate against resolution and just ignores it...it seems that for this instance type we do not validate for resolution...I think we should include an optional settings for that too (as on render instance type)

Screenshot 2024-04-03 103403

It is supposed that it should be at the separate PR but since this PR is quite small, I guess I can also implement here as it is adding back review as product type

@moonyuet moonyuet requested a review from LiborBatek April 3, 2024 09:23
Copy link
Member

@LiborBatek LiborBatek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Resolution Validator does work for Render instance but not for Review instance.

Also the Repair action only fixes the Render Settings aka Render Resolution but not changing the Review instance resolution.

When fixed the Render instance resolution it Validates OK even if the Review instance still having wrong set resolution.

not sure if related but here is copy paste from Max listener aka console:

  File "C:\Users\lbate\AppData\Local\Ynput\AYON\dependency_packages\ayon_2402141620_windows.zip\dependencies\pyblish\plugin.py", line 527, in __explicit_process
    runner(*args)
  File "C:\Work\REPO\ayon-core\client\ayon_core\hosts\max\plugins\publish\validate_resolution_setting.py", line 31, in process
    raise PublishValidationError("Resolution Setting "
ayon_core.pipeline.publish.publish_plugins.PublishValidationError: Resolution Setting not matching resolution set on asset or shot.
>>> [ *** Discovered 1 abstract plugins

Now Review having Validate Resolution which is fine and desired...

Screenshot 2024-04-05 114539

@moonyuet moonyuet requested review from LiborBatek and BigRoy April 5, 2024 13:45
@moonyuet
Copy link
Member Author

moonyuet commented Apr 5, 2024

The Resolution Validator does work for Render instance but not for Review instance.

Also the Repair action only fixes the Render Settings aka Render Resolution but not changing the Review instance resolution.

When fixed the Render instance resolution it Validates OK even if the Review instance still having wrong set resolution.

not sure if related but here is copy paste from Max listener aka console:

  File "C:\Users\lbate\AppData\Local\Ynput\AYON\dependency_packages\ayon_2402141620_windows.zip\dependencies\pyblish\plugin.py", line 527, in __explicit_process
    runner(*args)
  File "C:\Work\REPO\ayon-core\client\ayon_core\hosts\max\plugins\publish\validate_resolution_setting.py", line 31, in process
    raise PublishValidationError("Resolution Setting "
ayon_core.pipeline.publish.publish_plugins.PublishValidationError: Resolution Setting not matching resolution set on asset or shot.
>>> [ *** Discovered 1 abstract plugins

Now Review having Validate Resolution which is fine and desired...

Screenshot 2024-04-05 114539

I have separated validator for resolution setting in terms of render and review product type, as they dont get resolution data for exporting the sequences in a similar method. Can you test it again? @LiborBatek thanks!

@iLLiCiTiT
Copy link
Member

@moonyuet please update with latest develop. @LiborBatek please test again.

Copy link
Member

@LiborBatek LiborBatek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did new test round and found that

Validate Frame Range works and also Repair action too

Screenshot 2024-04-17 105409

but for Validate Resolution besides validation itself which works ok, the Repair action can fix global render settings namely for Render instance types but when using this validator on Review instance then the repair fails on instance.

Screenshot 2024-04-17 105103

and after triggered Repair action resolution still the same / invalid on the publish Review Instance...

Screenshot 2024-04-17 105125

@moonyuet moonyuet requested a review from LiborBatek April 17, 2024 10:13
Copy link
Member

@LiborBatek LiborBatek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now all Validators for resolution and frame ranges working with Repair actions for both Render and Review instances. All good

Only minor thing, there is unneccessarily long name for validator of the review resolution as seen on scrngrab here

Screenshot 2024-04-17 134200

Should be imho just Validate Resolution or Validate Review Resolution.
Other than that good and can be merged then...

@moonyuet
Copy link
Member Author

I already renamed in the updated commit.
image

@moonyuet moonyuet merged commit 9299e7e into develop Apr 17, 2024
1 check failed
@moonyuet moonyuet deleted the enhancement/using_task_entity_attributes_for_context_setting_related_validators branch April 17, 2024 12:15
@BigRoy
Copy link
Collaborator

BigRoy commented Apr 17, 2024

Now all Validators for resolution and frame ranges working with Repair actions for both Render and Review instances. All good

Only minor thing, there is unneccessarily long name for validator of the review resolution as seen on scrngrab here
Screenshot 2024-04-17 134200

Should be imho just Validate Resolution or Validate Review Resolution. Other than that good and can be merged then...

Just for context:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
host: 3dsmax size/XS type: enhancement Improvement of existing functionality or minor addition
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants