This just updates the play/stop button to use a more normal play/pause. The stop button has been added as a separate button to the right.
I saw this comment on reddit about this feature. I also talked with Bollebib and he agreed it would be useful.
This just updates the play/stop button to use a more normal play/pause. The stop button has been added as a separate button to the right.
I saw this comment on reddit about this feature. I also talked with Bollebib and he agreed it would be useful.
Tested playing and pausing. Pause stopped on the current frame. Pressing play again resumes where it left off.
Pressing stop at various time brings the playhead back to the start frame.
Lint Skipped |
Unit Tests Skipped |
Hi, @scottpetrovic!
I guess there is a small problem with the implementation of the stop button
Expected behavior:
Actual behavior:
I made some changes after testing it more with a playback range. The UX is a bit trickier with having a selection as there are more states to deal with with.
@dkazakov I fixed your use case with pressing pause, then stop removed the selection. There is some weird bug why the start playback function removes the selection, so the end() position seems to be how it works currently in code -- so I just used that
Hi, @scottpetrovic!
Now the button works exactly like it used to work without your patch, that is, it resets to the frame at the start of the playback. Sometimes the cursor even jumps somewhere when one presses play button :(
I would expect the feature work like that:
Speaking truly, I'm not entirely sure if the animators really want exactly a Play/Pause button. In their workflow, they usually need to see the same sequence multiple times, so that resetting the cursor to the initial frame seem quite natural. I have a feeling that having two buttons Play/Stop and Pause/Resume would be a bit more convenient for them, but i'm not entirely sure about the details, what happens if the user switches frames in a paused state.
There is also a quite old feature request, that is quite related to that: "Play around" button. This button should play a range [-1; +5] seconds around the current point. We should also take into account that this feature will be implemented one day.