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

DispatcherUI "fix" #1991

Merged
merged 2 commits into from Mar 3, 2017
Merged

Conversation

johnhaddon
Copy link
Member

This is a more radical approach to #1970, simply removing the problematic feature. I've provided the reasoning for this in the log for d8ed5f0. Can revisit the preview feature if you feel it's essential (I have a prototype) but my feeling was that with the simpler set of options we now present, it wasn't worth the complexity.

The Dispatcher class itself doesn't support such an option, because the playback range is something only the UI knows about. We were then trying to emulate the PlaybackRange option by pushing the playback range into the frameRange plug, replacing any custom range the user might have entered. We did keep track of the old custom range so it could be restored when changing back, but we had a bug whereby the playback range could stomp over the user's custom range.

Rather than fix the problem, this commit just removes the PlaybackRange option entirely. It was problematic to implement anyway, and the only reason it had even a chance of working was that the DispatcherWindow was always around in the background to monitor changes to the playback range and push them into the frameFrame plug. In future we intend to allow Dispatcher nodes to exist in the node graph directly, at which point there will be no guarantee of a persistent UI, and the feature would be impossible rather than merely problematic.

I had intended to add a simple preset to the frameRange plug to copy in the current playback range as an alternative, but that is not possible because presets have access only to the plug, not a context. I've also removed the frame range preview feature because it was relying on access to the DispatcherWindow too. Both these should be reintroducable at the expense of further complexity, but personally I don't think it's worth it.
@andrewkaufman
Copy link
Contributor

I probably won't have time today to build this to see what it looks like now. Can you put up a screenshot of the DispatcherWindow to show what the "no frame range preview" is like?

@johnhaddon
Copy link
Member Author

Sure. So, in the CurrentFrame and FullRange modes, you just see the dropdown menu with its selection, no preview of what the current frame or the full range is :

currentframe

In CustomRange mode, the field for entering the range is made visible.

customrange

@andrewkaufman andrewkaufman merged commit 464defe into GafferHQ:master Mar 3, 2017
@johnhaddon johnhaddon deleted the dispatcherUISimple branch March 3, 2017 09:49
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