-
Notifications
You must be signed in to change notification settings - Fork 206
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
OptionTweaks / Spreadsheet / Render Pass Editor : Make use of metadata registered for options #5871
OptionTweaks / Spreadsheet / Render Pass Editor : Make use of metadata registered for options #5871
Conversation
Thanks Murray, this makes the RenderPassEditor feel much more useable. I've made a few comments inline but they're mostly trivial, or likely where I've misunderstood something... |
Oh, there's one small downside to this that I forgot to mention : Ctrl+Return doesn't close the pop up editor for set expression in the RenderPassEditor, whereas before Return was doing. I think we can probably fix this in |
Improving the gaffer/python/GafferUI/PopupWindow.py Lines 78 to 81 in 403421c
Return keypress is swallowed by MultiLineTextWidget: gaffer/python/GafferUI/MultiLineTextWidget.py Lines 341 to 344 in 403421c
As an alternate take, I've added a commit to close PlugPopup based on the activatedSignal of the currently focused child widget in 0d14a72, see if that feels better to you, or if it triggers a better idea for implementation... |
Look for `textWidget()` attr rather than specific classes, so we can find `GafferSceneUI.SetExpressionPlugValueWidget`. Connect to `activatedSignal()` so we can close automatically when <kbd>Ctrl</kbd>+<kbd>Enter</kbd> is pressed in MultiLineTextWidgets.
0d14a72
to
4a8f20e
Compare
Thanks for the updates - I've squashed them in and merged.
Doh! I'd been assuming that we were connecting to |
This adds the ability for OptionTweaks to make use of globally registered metadata on tweak
value
plugs, allowing tweaks to present a specific plugValueWidget, presets, etc based on metadata registered for the option being tweaked. In addition we also allow metadata to be automatically forwarded to the default row of spreadsheet columns.The motivation here is to present a consistent UI for edits made with editors such as the Render Pass Editor, where the same widgets and presets should be presented at all levels, from the editor itself, through to spreadsheets within the Edit Scope processors and finally the OptionTweak nodes making the edits.