-
Notifications
You must be signed in to change notification settings - Fork 128
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
Maya: Rendersettings unify logic towards single library #3880
Maya: Rendersettings unify logic towards single library #3880
Conversation
…ngs` but use `project_settings` on the instance
…at existed only on validator - Also contains readability cosmetics
- Remove now unused `lib.RENDER_ATTRS`
…it - it's no problem they are set on default nodes)
…values Implement get, __getitem__ and __contains__ on `RenderSettings`
@mkolar @antirotor what do we think of adding this BigRoy#7 to EDIT: Done with 90667f3 |
Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
Yes please! |
Maya: RenderSettings class easy access to its project settings
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.
If you have Merge AOV
disabled and remove the token , the validate/repair never gets it back. This is for Maya and Arnold.
Tested in Maya 2020 successfully with #4795 merged.
Could you elaborate the preferred behavior. The question is what "repair" should do or allow? If I understand correctly it should revert the merge AOV option back to what the settings dictate, correct? It's not up to the scene or artist to deviate from the merge AOV option, yes? Currently the validation DOES allow to deviate merge AOVs settings + the image prefix as well. Which maybe makes it weird if it then forces the value on repair if it invalidates based on another setting? The validator does require however the token to match with the merge AOV setting, so have ` if merge AOV is disabled, and not have if it's enabled. Anyway, I've now made it so that it also repairs the merge AOV setting. @tokejepsen does that solve it for you? |
I think the repair should fix the file name prefix according to what state the
|
Also Maya Hardware 2.0 works. |
What should happen if the default prefix in settings does NOT have a token, should we append it to the end? Should we append |
Hmm, had some thoughts about optional tokens but since this setting is project based, admin should be in control of this. Lets keep as it now. Nice one! |
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.
Code looks good and partially tested for the renderers I can.
@LiborBatek could you test again whether in the meantime your issue mentioned here has been resolved? There have been changes in code (4 months ago) by @moonyuet here which I'm not sure whether they do what it intends to do. Since it seems off that first it's trying to set Anyway, the code seems related to the issue you described @LiborBatek so I suspect your particular issue has been resolved. |
maybe needs a double check on the particular setting, but it got tested and resolved in the other ticket which is merged in December 2022, while @LiborBatek found this on November 2022.The related PR is #4087 |
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.
@BigRoy could you resolve the conflicts? |
@BigRoy maybe silly question, how this PR adhere to the new publisher in maya? all good?! |
I don't expect it to be functional momentarily - it's a very old PR that I'm not sure how to best merge logically nowadays. I think we might have it merged in our colorbleed branch and along the way have synced that branch with new publisher - etc. but likely that's seen decent refactoring to make it work. However, some of the cleanup is still relevant - I'll close this PR and see if I can set up a new one with some of the cleanup in here that is still relevant. |
…ng_attr` method - Partial cleanup extracted from ynput#3880
Brief description
This tries to reduce the scattered hardcoded values for renderer attribute names, types and tries to clean up the same things on the
RenderSettings
class. I've also refactored the usage of it across the code.Description
lib_rendersettings
lib_rendersettings
lib_rendersettings
lib.RENDER_ATTRS
in favor of the now addedRenderSettings.get_padding_attr
(other logic oflib.RENDER_ATTRS
was unused)Additional info
Relates to #3878, #3879 and #3821 since they touch a similar area of the codebase.
Also relates to #3873 which also touches an aspect of rendering in Maya.
Testing notes: