Old 11-07-2017, 10:22 AM   #1
andyp24
Human being with feelings
 
andyp24's Avatar
 
Join Date: Mar 2016
Posts: 1,239
Default 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
andyp24 is offline   Reply With Quote
Old 11-07-2017, 01:09 PM   #2
EpicSounds
Human being with feelings
 
EpicSounds's Avatar
 
Join Date: Jul 2009
Posts: 7,568
Default

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.
__________________
REAPER Video Tutorials, Tips & Tricks and more at The REAPER Blog
EpicSounds is offline   Reply With Quote
Old 11-07-2017, 02:05 PM   #3
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

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.
X-Raym is offline   Reply With Quote
Old 11-08-2017, 03:03 AM   #4
andyp24
Human being with feelings
 
andyp24's Avatar
 
Join Date: Mar 2016
Posts: 1,239
Default

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
andyp24 is offline   Reply With Quote
Old 11-08-2017, 07:15 AM   #5
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

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 ?
X-Raym is offline   Reply With Quote
Old 11-08-2017, 08:54 AM   #6
andyp24
Human being with feelings
 
andyp24's Avatar
 
Join Date: Mar 2016
Posts: 1,239
Default

I'll try those suggestions as soon as I can, thanks.

Andy
andyp24 is offline   Reply With Quote
Old 11-09-2017, 11:02 AM   #7
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

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();
_Stevie_ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:29 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.