|
|
|
03-08-2021, 04:51 PM
|
#41
|
Human being with feelings
Join Date: Jun 2009
Location: South, UK
Posts: 14,214
|
Another vote for this!
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
|
|
|
04-10-2021, 04:05 PM
|
#42
|
Human being with feelings
Join Date: Aug 2010
Posts: 396
|
Anyone know if it's possible to prevent Undo points in this script? I looked here https://forum.cockos.com/showthread.php?t=168746 and tried a few things, but never found a way to run this script without generating undo points:
Code:
function main()
reaper.defer(main)
local ps = reaper.GetPlayState() -- 0=paused, 1=playing,2=pause,4 is recording
if (ps&1)==0 then
-- Get handle for custom action ID ------------------------
local act = "_RSf1bfce031c736658071a00cbf202b105bbbc3505"
if string.sub(act, 1, 1) == "_" then
act = reaper.NamedCommandLookup(act)
end
act = tonumber(act)
----------------------------------------------------------
-- Run custom action ID ----------------------------------
if act and act > 0 then
reaper.Main_OnCommand(act, 0)
end
----------------------------------------------------------
return
end
end
main()
|
|
|
04-10-2021, 04:49 PM
|
#43
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,612
|
Quote:
Originally Posted by benmrx
Anyone know if it's possible to prevent Undo points in this script? I looked here https://forum.cockos.com/showthread.php?t=168746 and tried a few things, but never found a way to run this script without generating undo points:
Code:
function main()
reaper.defer(main)
local ps = reaper.GetPlayState() -- 0=paused, 1=playing,2=pause,4 is recording
if (ps&1)==0 then
-- Get handle for custom action ID ------------------------
local act = "_RSf1bfce031c736658071a00cbf202b105bbbc3505"
if string.sub(act, 1, 1) == "_" then
act = reaper.NamedCommandLookup(act)
end
act = tonumber(act)
----------------------------------------------------------
-- Run custom action ID ----------------------------------
if act and act > 0 then
reaper.Main_OnCommand(act, 0)
end
----------------------------------------------------------
return
end
end
main()
|
Which script is the one behind the ActionCommandID _RSf1bfce031c736658071a00cbf202b105bbbc3505?
|
|
|
04-10-2021, 06:59 PM
|
#44
|
Human being with feelings
Join Date: Aug 2010
Posts: 396
|
Quote:
Originally Posted by Meo-Ada Mespotine
Which script is the one behind the ActionCommandID _RSf1bfce031c736658071a00cbf202b105bbbc3505?
|
It's this one from Reapack: Script: TJF Move Edit Cursor to Start of Razor Edits.lua
Lol..., wait a minute. I'm looking at that script now and see there's a built-in bool for making it run deferred. I'll test that out tonight.
EDIT: I just tested, and just running this script deferred is not creating undo points..., so it was definitely my own implementation that caused it. A nice learning opportunity. So, in the end..., all good. I can study this script.
Last edited by benmrx; 04-10-2021 at 09:38 PM.
|
|
|
04-14-2021, 04:26 AM
|
#45
|
Human being with feelings
Join Date: Nov 2010
Posts: 1,710
|
Quote:
Originally Posted by foxAsteria
Any way to do this in a Cycle Action?
|
I'd like to know this as well.
I've setup actions to step forward to the next bar and to step back. (A legacy from my cubase years)
Unfortunately, in order to work both when playing and when stopped, I had to make the "step back" one, a cycle action. This gets added to the undo list.
So let's say I press it 5 times to go back to a point to look at it and then want to undo what I've changed I have to press the undo key 6 times.
Any way around this?
Is there a script that I could run at various points in the cycle action to stop it going into the undo list?
Sorry - scripting newbie here
|
|
|
04-14-2021, 04:59 PM
|
#46
|
Human being with feelings
Join Date: Dec 2009
Location: Oblivion
Posts: 10,248
|
Quote:
Originally Posted by mozart999uk
I'd like to know this as well.
|
It's not possible, but you can try persuading the sws devs to remove it from specific sws actions that maybe shouldn't have it.
Not a good enough fix though; we need a way to remove it wherever necessary. Such a nuisance when you use a lot of custom actions/scripts etc.
|
|
|
04-15-2021, 05:08 AM
|
#47
|
Human being with feelings
Join Date: Nov 2010
Posts: 1,710
|
Quote:
Originally Posted by foxAsteria
It's not possible, but you can try persuading the sws devs to remove it from specific sws actions that maybe shouldn't have it.
Not a good enough fix though; we need a way to remove it wherever necessary. Such a nuisance when you use a lot of custom actions/scripts etc.
|
Thanks. Appreciate you explaining.
Is there an FR on this already?
|
|
|
04-15-2021, 05:15 AM
|
#48
|
Human being with feelings
Join Date: Dec 2012
Posts: 13,333
|
Quote:
Originally Posted by mozart999uk
Thanks. Appreciate you explaining.
Is there an FR on this already?
|
For what? SWS? Their GitHub.
|
|
|
04-15-2021, 07:02 AM
|
#49
|
Human being with feelings
Join Date: Nov 2010
Posts: 1,710
|
No sorry I meant the ability to set certain actions to not be recorded in the undo history.
I've searched and there's quite a few; one I'd voted on already without remembering!
https://forum.cockos.com/showthread....highlight=undo
Perhaps some people here could add their weight to it?
|
|
|
04-15-2021, 08:24 AM
|
#51
|
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,093
|
Quote:
Originally Posted by mozart999uk
Unfortunately, in order to work both when playing and when stopped, I had to make the "step back" one, a cycle action. This gets added to the undo list.
|
What does the cycle action contain exactly?
|
|
|
04-16-2021, 02:23 AM
|
#52
|
Human being with feelings
Join Date: Nov 2010
Posts: 1,710
|
I've attached a screenshot.
It uses two actions that I've created - bit of a kludge but only way I could get it to work....
I guess I could write a script to do the whole thing, then perhaps include some of the anti-undo suggestions mentioned above.....
Last edited by mozart999uk; 04-16-2021 at 02:28 AM.
Reason: added something
|
|
|
04-16-2021, 02:28 AM
|
#53
|
Human being with feelings
Join Date: Dec 2012
Posts: 13,333
|
Quote:
Originally Posted by mozart999uk
I've attached a screenshot.
It uses two actions that I've created - bit of a kludge but only way I could get it to work....
I guess I could write a script to do the whole thing, then perhaps include some of the anti-undo suggestions mentioned above.....
|
What's inside these two custom actions?
|
|
|
04-16-2021, 02:34 AM
|
#54
|
Human being with feelings
Join Date: Nov 2010
Posts: 1,710
|
Quote:
Originally Posted by vitalker
What's inside these two custom actions?
|
Attachments included
|
|
|
04-16-2021, 03:08 AM
|
#55
|
Human being with feelings
Join Date: Dec 2012
Posts: 13,333
|
Quote:
Originally Posted by mozart999uk
Attachments included
|
Not sure, but try to uncheck this: Preferences -> General -> Undo settings -> Include selection -> cursor position.
|
|
|
04-16-2021, 03:18 AM
|
#56
|
Human being with feelings
Join Date: Nov 2010
Posts: 1,710
|
Quote:
Originally Posted by vitalker
Not sure, but try to uncheck this: Preferences -> General -> Undo settings -> Include selection -> cursor position.
|
Thanks for the suggestion. Unfortunately it was already unticked 😊
|
|
|
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 12:24 AM.
|