Page 1 of 1

Scrub Timeline by Shortcut and Mouse Movement over Canvas

Posted: Sat Jul 31, 2021 10:11 am
by mgo
Hey everyone, imagine You can hold a hotkey and move the mouse left/right in order to scrub the timeline. No need to move to the timeline. I find this a great way to tweak animations, where I can focus on the shapes and keep my cursor over the drawing canvas.

Blender and Maya have that feature, and also Clip Studio Paint. Once You have tried it You won't go back.

It would be nice if Moho gave us the possibility to map a hotkey for scrubbing the timeline, too.

Re: Scrub Timeline by Shortcut and Mouse Movement over Canvas

Posted: Sat Jul 31, 2021 6:56 pm
by synthsin75
I wrote a script to do that a long time ago, but haven't used it much since. I'll look for it later today.

Re: Scrub Timeline by Shortcut and Mouse Movement over Canvas

Posted: Sat Jul 31, 2021 10:20 pm
by mgo
synthsin75 wrote: Sat Jul 31, 2021 6:56 pm I wrote a script to do that a long time ago, but haven't used it much since. I'll look for it later today.
Oh, that sounds nice :)

Re: Scrub Timeline by Shortcut and Mouse Movement over Canvas

Posted: Sun Aug 01, 2021 5:24 am
by synthsin75
Found the script and pared it down to timeline scrubbing: https://www.dropbox.com/s/gntr2oj7jsyxs ... e.zip?dl=0

If anyone is interested in me adding this functionality to Switch Icons (so you don't have to reach as far from the icons to scrub the timeline), I can see about doing that when I find the time.


I had hoped that it would work well with assigning a shortcut and using while you hold the shortcut, returning to the last tool when you release, but tools take a pretty heavy hit to performance when you use them like that. So you'll want to switch to this tool to use it. Probably not ideal.
EDIT: This lag is actually caused by a longstanding bug on Windows. I wrote a fix for it long ago: https://www.lostmarble.com/forum/viewto ... 81#p168081
With the fix, it works great with holding the shortcut key to temporarily select it.

Re: Scrub Timeline by Shortcut and Mouse Movement over Canvas

Posted: Sun Aug 01, 2021 2:02 pm
by mgo
Wes, thanks so much. Your script works brilliantly.

Am I correct to assume that these (below) have something to do with the relation mouse movement <> playhead travel?

Syn_ScrubWorkspace.speed = 5
Syn_ScrubWorkspace.max = 50

What values would I chose for slower increments? I already tweaked to lower values but didn't notice a difference.

Cheers, Marin

Re: Scrub Timeline by Shortcut and Mouse Movement over Canvas

Posted: Sun Aug 01, 2021 2:06 pm
by synthsin75
Changing those values in the script won't do much. That's why it has a "Speed" setting in the tool's option bar.
The first value is just an initial default, and the second one is just the maximum that can be set in the "Speed" option box.

Re: Scrub Timeline by Shortcut and Mouse Movement over Canvas

Posted: Sun Aug 01, 2021 6:16 pm
by SimplSam
This is excellent, very handy even when used with long-press (and lag*).

One micro adjustment I made was to allow the speed to be a float and drop to 0.1 minimum - to allow slow motion scrubbing.

*(EDIT) - Lag removed after updating Key Repeat Delay (as discussed in other thread).

Re: Scrub Timeline by Shortcut and Mouse Movement over Canvas

Posted: Sun Aug 01, 2021 7:07 pm
by synthsin75
SimplSam wrote: Sun Aug 01, 2021 6:16 pm This is excellent, very handy even when used with long-press (and lag).

One micro adjustment I made was to allow the speed to be a float and drop to 0.1 minimum - to allow slow motion scrubbing.
If that's desired, I can change that in the official release.

EDIT: Just updated with those changes.

Re: Scrub Timeline by Shortcut and Mouse Movement over Canvas

Posted: Sun Aug 01, 2021 8:26 pm
by mgo
Toolbar, of course. Thanks again :)

Re: Scrub Timeline by Shortcut and Mouse Movement over Canvas

Posted: Fri Nov 25, 2022 10:01 pm
by synthsin75
New version that allows you to set the scrubbing interval:

https://dl.dropboxusercontent.com/s/gnt ... e.zip?dl=0