Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Q&A, Tips, Tricks and Howto

Reply
 
Thread Tools Display Modes
Old 12-01-2022, 01:16 PM   #1
pietro79
Human being with feelings
 
Join Date: Jun 2016
Posts: 267
Default cycle action help: is there "if undo" statement?

Hi!

I made this custom action:
Item edit: Nudge left by saved nudge dialog settings 1
Item navigation: Move cursor to start of items

(and another for nudging right)

The purpose of this is so that when I nudge an item to synchronize it with a video clip, the video window updates to reflect the synch point.

BUT, hitting undo doesn't back the play head up -- when I hit undo, the item moves back to where it was, but the play head doesn't follow; the play head doesn't move to the start of the item, and therefore the video doesn't update. I've tried "consolidating undo points" but that doesn't correct the behavior. I suppose it makes sense that when I hit undo, the play head doesn't follow (ie, undo follow = don't follow!).

My GUESS is that I need to use a cycle action (correct me of course, if there's a better way). But I have only limited experience with creating cycle actions.
__________________________________________________ ____________
In plain language, I want to run the custom action above:
Item edit: Nudge left by saved nudge dialog settings 1
Item navigation: Move cursor to start of items

But if I hit undo, I want:
Item edit: Nudge right by saved nudge dialog settings 1
Item navigation: Move cursor to start of items
__________________________________________________ ____________

MY QUESTION (assuming I'm not totally off in guessing that my issue would be addressed by a cycle action):

Is there a cycle action statement that is something like IF UNDO?

Basically, run action X, but if undo is hit after that action was run, then run this other action instead

Thank you!
Pietro

Last edited by pietro79; 12-01-2022 at 01:18 PM. Reason: clarity, hopefully
pietro79 is offline   Reply With Quote
Old 12-01-2022, 01:32 PM   #2
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

There's an option in Preferences > General > Undo settings
to include the cursor position in undos (which is disabled by default I think).
Maybe if you enable that (and have consolidate undo points ticked) it works (didn't test myself).

Drawback would be that now every (e.g. manual) cursor move would create an undo point.

I can't think of a way currently to do it with cycle actions only (without enabling this option) but maybe someone else has an idea.
nofish 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 10:17 AM.


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