|
|
|
11-07-2017, 10:22 AM
|
#1
|
Human being with feelings
Join Date: Mar 2016
Posts: 1,239
|
X-Raym_Move edit cursor to previous/next frame
Hi all (particularly X_Raym if he's around)
Using these scripts, in a project set at 25fps. I've set the two scripts (prev/next) to hotkeys (L and R arrows), so I can in theory move through the project one frame at a time with the arrow keys.
However, it ignores some keypresses. Sometimes about 1 in 4, sometimes about 1 in 8 or fewer. If I repeatedly go left-right-left-right-left-right etc it never misses any and always jumps the frame back and forth. But if I just try to go in one direction, it will start skipping some.
This happens whether or not there's any video actually in the project.
Can someone explain or help please?
Thanks
Andy
|
|
|
11-07-2017, 01:09 PM
|
#2
|
Human being with feelings
Join Date: Jul 2009
Posts: 7,568
|
occasionally I have to repeat the action before it advances a frame. I haven't thought much of it
for example - if I run the action 10 times the tenth one doesn't move the cursor.
x-raym says he'll look into it.
|
|
|
11-07-2017, 02:05 PM
|
#3
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
Just took a look,
I am personally not able to replicate, even running the actions 30 times.
But according to mrlimbib, maybe there is sometimes some rounding issue with floating point calculations.
As I can't replicate I don't know if the code can be optimized to avoid that, but the workarround (running the action several time) is a valid alternative.
|
|
|
11-08-2017, 03:03 AM
|
#4
|
Human being with feelings
Join Date: Mar 2016
Posts: 1,239
|
Thanks both of you. Good to know it's not just me, but obviously interesting that X-Raym doesn't see this happen.
Is there anything I can do to help track it down, if you might be able/willing to fix it X-Raym? I could send a test project, and let you know (or send) my config if that might help?
Andy
|
|
|
11-08-2017, 07:15 AM
|
#5
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
I tried with 25 fps as well.
Maybe try to always ahve Snap to grid (frame) activate,
and to have a good amount of zoom in the arrange view to be sure it is not just a rouding on the pixel of the edit cursor.
Also, set up your clock to Something like absolute frame to see if you are really stuck of it is again just a graphical thing ?
|
|
|
11-08-2017, 08:54 AM
|
#6
|
Human being with feelings
Join Date: Mar 2016
Posts: 1,239
|
I'll try those suggestions as soon as I can, thanks.
Andy
|
|
|
11-09-2017, 11:02 AM
|
#7
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
I experienced the same. There's also a script from spk77 in the repos.
It's called "Move edit cursor forward by 1 frame (or 1 beat)".
I changed the script, so that it always moves by 1 frame. However, you could also make a nudge preset and save it. Check the screenshot:
And here is the edited code for the spk77 script:
Code:
/*
* ReaScript Name: Move edit cursor back by 1 frame
* EEL script for Cockos REAPER
* Author: spk77 (edited by Stevie)
* Author URI: http://forum.cockos.com/member.php?u=49553
* Licence: GPL v3
* Version: 1.0
*/
// Move edit cursor left by 1 frame (or by 1 beat if "ruler time unit is not H:M:S:F")
// EEL script by spk77 - 10.9.2014
//
// Version: 0.2014.9.10
function move_cursor_left() local(snap, grid_vis, state, beat_in_meas, meas, closest_beat_in_secs)
(
ApplyNudge(0, 2, 6, 18, 0.501, 1, 0); // nudge edit cursor left by 0.501 frames (snap to unit)
);
Undo_OnStateChange("Move edit cursor left by 1 frame");
move_cursor_left();
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 04:29 AM.
|