Confusing snapping with playhead: please highlight reason

Is there a keyboard shortcut I’m not aware of? I don’t know what to do for a 60fps video that needs a bunch of half-second transitions set up. The only keyboard shortcut I know for that scenario is hitting the left arrow key 30 times, which is what made the N frames feature attractive. I’m aware the slideshow generator is a possible solution, but that doesn’t help align stinger transitions.

Page Up (-1 second) & Page Down (+1 second) ?

Right, but that doesn’t solve the scenario I posed. What would someone do for a half-second jump at 60fps that doesn’t require 30 keystrokes? As in, what’s a fast way to set up the playhead for transitions that aren’t exactly one second long?

Honestly, I don’t see all this as a big problem. After a couple of times swearing because the playhead was in the way, I just learned to move it away before dragging a clip to create a transition.

For single-track overlapping transitions, agreed, there isn’t an issue. But for two track cross fades, or for stinger transitions that involve graphics on a higher track that start a half second before the end of the clip, this is a very big deal. This applies to J- and L-transitions as well, where audio (usually dialog) comes in a little before or after the video cut point. N-frame advance is also very useful for setting up keyframe animation points on a cadence.

Hopefully this appeal doesn’t come across as obnoxious. I respect Dan’s decision to not include the feature. On rare occasion, I feel there could be virtue in making a case for a feature if its benefits have not been well-documented. But if No is still No, then I don’t bring it up again. :smile:

1 Like

I just saw this post now. I had made this suggestion for this very button back in February in this post:

Thank you very much, @Namna for creating it! :smiley:

1 Like

I agree. I saw it yesterday after I installed version 20.09.13. I love it. Thanks @Namna for the contribution. And thanks to @shotcut for including it along with the other great new features, changes and fixes. :+1: :+1:

@namna, I am seeing this thread for the first time very late and just spotted your toolbar modifier:

Shotcut Toolbar frame seek

I know @shotcut doesn’t like it and has rejected it, so it won’t be added as a regular feature of SC but I’d like to put my view that for me it is a fantastic tool and I will be using it often. Thank you so much!

It’s perfect for making, say, 7-frame transitions (eg the motion-blur transitions for which I’m trying to prepare a tutorial for).

Also great for seeking through a clip to find a place to make a cut, when the 1-second shortcut is too long and single-frame advancing is too short (having the ability to jump just 10 frames at time is SO useful)!

Also, for setting at the value of 1 second (eg 25 for a 25fps video) to advance or reverse by 1-second steps without having to keep finding the page-up or page-down keys (when working at speed) is in my view, brilliant.

Thanks!! :+1: :+1: :+1: :+1:

(I’m with @austin , in favour of this!!)
PS On my system the path to the timelinetoolbar qml file is different to yours:
Program files/shotcut/share/shotcut/qml/views/timeline

3 Likes

Hi @austin, I found that it’s possible to use a simple AutoHotkey script to move the playhead a specific number of frames (Windows only).

  1. Download and install Auto HotKey.

  2. Copy /paste the following into Notepad.

    SetKeyDelay, 80
    
    ^0::
    send, {right  10}
    return
    
    ^9::
    send, {left  10}
    return
    
  3. Save it but change the extension from .txt to .ahk.

  4. Right-click the AHK file and select “Run Script”

  5. Open a Shotcut project.

When on the timeline, pressing CTRL/0 will advance the playhead 10 frames; pressing CTRL/9 will reverse the playhead by 10 frames.

I’ve set the “SetKeyDelay” parameter to 80 (milliseconds) to move the playhead slow enough for it to work in Shotcut. You could change to a lower value but it may be too fast to work properly.
By using proxy editing you should be able to use a lower value, especially for reverse movement.

Change the number 10 in the AHK script to change the number of frames.

Even better, you could set up different AHK hotkeys to trigger different frame distances - so for example the script below uses the numberpad keys to advance the playhead 5, 10, or 15 frames when pressing numberpad 1, numberpad 2 or numberpad 3, for example (when Num lock is on).
(I find this script very useful for locating precise spit points when I need to convert a long clip into individual scenes).

numpad1::
send, {right  5}
return

numpad2::
send, {right  10}
return

numpad3::
send, {right  15}
return
1 Like

That’s a clever use of AutoHotKey. I’ll consider using it if I get tired of reapplying the Namna mod some day.

1 Like

Message for @namna - I’m using your timeline modification and finding it really useful.

image

However, whenever I change the value directly in the number field, then go back to an action in Shotcut (say click on the the timeline bar and press “space” to play) the focus remains on the value field (the cursors still blinks). Is there a change in code I could apply to fix this ? Many thanks!

Message pour @namna - J’utilise la modification de votre chronologie et je la trouve vraiment utile. Cependant, chaque fois que je change la valeur directement dans le champ numérique, puis reviens à une action dans Shotcut (par exemple, cliquez sur la barre de chronologie et appuyez sur «espace» pour jouer), le focus reste sur le champ de valeur (les curseurs clignotent toujours) . Y a-t-il un changement de code que je pourrais appliquer pour résoudre ce problème? Merci beaucoup!

Entrez la valeur dans le champ numérique, puis tapez sur “Enter” cela retire le focus du champ.

Enter the value in the numeric field, then tap “Enter” it removes the focus from the field.

Hi @namna, I tried that but it’s not working for me. The cursor remains blinking. Must be something my end - I’ll try a reinstall.

Salut, j’ai essayé mais cela ne fonctionne pas pour moi. Le curseur continue de clignoter. Ça doit être quelque chose de ma fin - je vais essayer de réinstaller.

Great add-on!

Thank you, as a transition specialist that you are, I hope this will help you when you need to move 20 frames. :wink:

1 Like

Yes! For sure! Thank you!

Nope, same thing here jonray. To remove the focus from that field, all I could find that works is clicking inside another field, like the time counter field for instance.

I have not tested this extension, but there is a global keyboard shortcut Shift+Esc to give the player focus (not anything specifically in it). Or you can simply click the player. That is a general remedy for making some keyboard shortcuts work because something with a focus scope is stealing them.

1 Like

:+1: Shift+Escape works. Thanks.

@namna PM’d me to say that the line of code (line 171 or thereabouts):

 Keys.onEnterPressed: focus = false//hiddenButton.forceActiveFocus()

makes the modification respond to the NUMERICAL KEYPAD “Enter”. To make it respond to “Return” change the code to:

 Keys.onReturnPressed: focus = false//hiddenButton.forceActiveFocus()

It works! Thanks to @namna.