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

Quick access to ShaderTweaks from Viewer selection #3001

Merged
merged 4 commits into from Jan 29, 2019

Conversation

johnhaddon
Copy link
Member

This adds a "History/Edit Tweaks..." menu item as a companion to the recently added "Edit Source Node..." menu item. For this initial version I've gone for the simplest possible mechanism, with just a single menu item that accesses the tweaks node for the "most obvious" shader assigned at the selected location. There are other approaches we could take, such as different menu items for each assigned shader, or doing the history trace upfront (rather than when the item is chosen) and then listing nodes by name. My impression though was that folks were most interested in a single shortcut that "just works", so that's what I've tried to implement. I'm definitely happy to iterate on this and add more items/features, but my feeling is we might get better feedback if we can show something to people first...

@johnhaddon
Copy link
Member Author

I've squashed in some fixes so that attribute inheritance is taken into account properly.

There have been a ton of opinions on this, and this might not be where we end up eventually, but we expect it to be an improvement over the originals as far as most folks are concerned. The main thoughts were :

- `Ctrl+` shortcuts are awkward to type, so not suitable for keypresses we expect to use frequently.
- `Ctrl+E` clashed with the shortcut for dispatching the selected executable nodes.
- Shortcuts without modifiers can be a bit too easy to hit by accident, so may not be suitable for things
  that make a big change of state.  We did consider using a row of ASD or HJK for various history operations, and it seems that something along these lines may be the best alternative candidate.
  There is an opinion that popping up a NodeEditor is too big of a state
  change though.
- `Alt+` is easy to type, because usually you're resting on Alt for access to the camera movement.

I'm sure if we ask a few more folks we'll get a few more opinions, but this is what we're going to try for now.
@johnhaddon
Copy link
Member Author

Pushed a change to the choice of keyboard shortcuts.

@andrewkaufman andrewkaufman merged commit c3655cb into GafferHQ:master Jan 29, 2019
@johnhaddon johnhaddon deleted the moreHistory branch January 31, 2019 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants