Old 06-16-2020, 04:38 AM   #2041
timbralzoom
Human being with feelings
 
timbralzoom's Avatar
 
Join Date: Apr 2010
Location: Turkey/Istanbul
Posts: 1,820
Default

Quote:
Originally Posted by MusoBob View Post
That should be doable if there's nothing already to do it.
It would select the first if it's yellow
Time selection: Crop project to time selection
save project as region name
undo
select next region if yellow
Time selection: Crop project to time selection
save project as region name
undo
select next region if yellow
Thank you MusoBob!

i think this already wasn't so difficult with a few more mouse click
(i have to confess .. i didn't realize after pasting to new project
we still have the undo the crop in the original project )
timbralzoom is offline   Reply With Quote
Old 06-16-2020, 07:33 AM   #2042
earhax
Human being with feelings
 
earhax's Avatar
 
Join Date: Nov 2015
Location: earth
Posts: 471
Default

Is it possible to script enabling/disabling the "ignore effects chain keyboard shortcuts (send to main window)" option when an FX chain window is frontmost?

Usefulness: the ability to temporarily enable/disable this option via script would allow some shortcuts to target the main window, while others would remain functional for the FX chain/plugin window/instance.

Example: any action/script bound to a shortcut using the shift key modifier (by itself, without any other modifiers) will not work without this option being enabled.

Problem: I have a lot of shortcuts bound to shift+some key that I'd really like to still be able to use while an FX window is floating/frontmost, but don't want to need to constantly mouse over and toggle the "ignore..." menu option.
earhax is offline   Reply With Quote
Old 06-17-2020, 03:11 PM   #2043
ARkaine2
Human being with feelings
 
ARkaine2's Avatar
 
Join Date: Feb 2020
Posts: 62
Default

Please help, I need custom "Select Item Under Mouse Cursor" script.

This script should be like "Select Item Under Mouse Cursor" (NOT "Select Item Under Mouse Cursor (leaving other items selected)"), but when mouse cursor isn't over any (selected/unselected) item WITHOUT UNSELECTING (selected) items.

So, in other words, script should act in such way:
1. If no other items selected, select just one item under cursor.
2. If other items selected, unselect them and select just one item under mouse cursor.
-- this part of functionality we have by "Select Item Under Mouse Cursor" default action.
But when we use "Select Item Under Mouse Cursor" default action, if mouse cursor isn't over any (selected/unselected) item, it UNSELECTS selected items, so I need one "simple" change into it:
3. If mouse cursor isn't over any (selected/unselected) item, don't unselect (selected) items.
-- this will let us use this script in combo with other actions and won't affect selection (of selected items) when mouse cursor isn't over any item.

Maybe it's verbally hard described, but I need this script very much (I do a lot of actions in such way [under mouse cursor]: Cut, Copy, Paste, Duplicate, Delete, Color Items, Open Key Editor etc.), so I'll provide you any additional info if you'll take this "task" and I'll be very appreciate.

Last edited by ARkaine2; 06-17-2020 at 04:02 PM.
ARkaine2 is offline   Reply With Quote
Old 06-17-2020, 04:50 PM   #2044
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

Quote:
Originally Posted by ARkaine2 View Post
Please help, I need custom "Select Item Under Mouse Cursor" script.
Try the attached script and let me know if it works for you.
Attached Files
File Type: lua Select item under mouse - dont unselect.lua (221 Bytes, 297 views)
nofish is offline   Reply With Quote
Old 06-17-2020, 05:11 PM   #2045
ARkaine2
Human being with feelings
 
ARkaine2's Avatar
 
Join Date: Feb 2020
Posts: 62
Default

Quote:
Originally Posted by nofish View Post
Try the attached script and let me know if it works for you.
Thanks. It works perfect.
You did it pretty quickly, but you really saved my life.
ARkaine2 is offline   Reply With Quote
Old 06-17-2020, 05:12 PM   #2046
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

It's a pretty short script. :P
Glad it works, you're welcome.
nofish is offline   Reply With Quote
Old 06-21-2020, 09:43 PM   #2047
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

I do have a wish for a script,...
So reaper has ways to automatically build audio routing outs for a multi IO VSTi... right
and then once it is in the TCP we can also use the FX window to build
track to record the MIDI output of that same VSTi...
But reaper builds those MIDI outs in a really stupid way:
It sets them to MIDI All to 1, MIDI All to 2, etc. for 16 tracks
This would almost never be desired and if is was it should only take one track for MIDI All to "X"...

What IS desired is 16 MIDI tracks, set to record MIDI output with the send receives set like this:
Audio=None, MIDI 1 to 1, then MIDI 2 to 2, etc. So that each MIDI track keep the separated MIDI outs from the VSTi correctly.

So I'd love to have a script that would do the following:

We start with some VSTi on one track, and then script builds X number of audio out tracks, named Audio 1, 2, etc. AND it lets the user enter the number of audio out tracks to build AND ALSO lets user decide if they should be stero outs or mono outs... so by user input they could go like
1/2 to 1/2, 3/4 to 1/2, 5/6 to 1/2, etc. [MIDI = None]
OR the user could choose the outs to be mono, like
1-1, 2-2. 3-3, 4-4,etc....

any thoughts?
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 06-24-2020, 03:10 PM   #2048
Flightlevel55
Human being with feelings
 
Join Date: Jun 2020
Posts: 8
Default Track Naming

With the help of a few good people on here I have created a LUA script to set tempo, create a 1 bar click (as a count in) then add two empty tracks. Can I add something to auto name the three tracks:- Click, Guitar & Vocals. Any help or advice appreciated.
Flightlevel55 is offline   Reply With Quote
Old 06-24-2020, 03:40 PM   #2049
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

Code:
reaper.GetSetMediaTrackInfo_String(TheTrack, 'P_NAME', 'The New Name', true)
cfillion is offline   Reply With Quote
Old 06-25-2020, 05:21 PM   #2050
justcosmic1
Human being with feelings
 
Join Date: Dec 2013
Posts: 109
Default Can scripts add burried menu items to action list?

hi
Noob question here: I keep finding that I want to add simple actions that are currently not available: For example I wanted to create a button to toggle "Preferences\recording\Always show full track control on armed tracks".

I was considering learning some scripting in order to be able to do this...but then I realised that I don't even know if that kind of thing is possible by scripting!
justcosmic1 is offline   Reply With Quote
Old 06-25-2020, 05:35 PM   #2051
justcosmic1
Human being with feelings
 
Join Date: Dec 2013
Posts: 109
Default Create action from Right click in any menu's

Following on from my previous comment I then posted the following UI feature request:
https://forum.cockos.com/showthread....47#post2310047

So it occurred to me to ask here too, if that could be done as a scripting and if anyone might be up to the task. (I suspect something that elaborate would be need someone a bit experienced).

I suspect it might be more of a core UIX thing - but I also suspect that would take longer; and even an approximation of the above would be a game changer.

My frustration is that at the moment only some things are exposed to the actions list - and it is a several step process to make even those actions usable.
My idea would obviously be much faster and more intuitive - If it were possible!

So that's my 1st question: is it possible...?
justcosmic1 is offline   Reply With Quote
Old 06-25-2020, 05:44 PM   #2052
justcosmic1
Human being with feelings
 
Join Date: Dec 2013
Posts: 109
Default Select all record armed tracks/show only armed

Sorry if I am throwing too much out there at once!
I forgot that I had been wondering if it were possible to make a script to select all record armed tracks and a variant to show only record armed tracks (ability to toggle that too).
I suspect there is an action to disarm all record armed tracks - but if there isn't there should be!

OK going to leave it there - thanks for starting this thread and to all those who are giving of their expertise to the commuity - I'm finally starting to make Reaper my own and loving it!
justcosmic1 is offline   Reply With Quote
Old 06-25-2020, 05:54 PM   #2053
justcosmic1
Human being with feelings
 
Join Date: Dec 2013
Posts: 109
Default

Quote:
Originally Posted by ARkaine2 View Post
Please help, I need custom "Select Item Under Mouse Cursor" script.

This script should be like "Select Item Under Mouse Cursor" (NOT "Select Item Under Mouse Cursor (leaving other items selected)"), but when mouse cursor isn't over any (selected/unselected) item WITHOUT UNSELECTING (selected) items.

So, in other words, script should act in such way:
1. If no other items selected, select just one item under cursor.
2. If other items selected, unselect them and select just one item under mouse cursor.
-- this part of functionality we have by "Select Item Under Mouse Cursor" default action.
But when we use "Select Item Under Mouse Cursor" default action, if mouse cursor isn't over any (selected/unselected) item, it UNSELECTS selected items, so I need one "simple" change into it:
3. If mouse cursor isn't over any (selected/unselected) item, don't unselect (selected) items.
-- this will let us use this script in combo with other actions and won't affect selection (of selected items) when mouse cursor isn't over any item.

Maybe it's verbally hard described, but I need this script very much (I do a lot of actions in such way [under mouse cursor]: Cut, Copy, Paste, Duplicate, Delete, Color Items, Open Key Editor etc.), so I'll provide you any additional info if you'll take this "task" and I'll be very appreciate.
Just currious as to if this would replace mouse behaviour for example if you were to click drag in some space between items/tracks to create a region?
If I remember correctly the default behaviour is that it deselects current selection: it would be great if there was the option to change that behaviour.
justcosmic1 is offline   Reply With Quote
Old 06-25-2020, 06:11 PM   #2054
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

Quote:
Originally Posted by justcosmic1 View Post
hi
Noob question here: I keep finding that I want to add simple actions that are currently not available: For example I wanted to create a button to toggle "Preferences\recording\Always show full track control on armed tracks".

I was considering learning some scripting in order to be able to do this...but then I realised that I don't even know if that kind of thing is possible by scripting!
Yes, it's possible.
Very briefly, you need to alter a 'config variable', zoomshowarm in this case.

Maybe open a dedicated thread here in the scripting forum (to not clutter this request thread) asking for help if you're up for learning scripting.
nofish is offline   Reply With Quote
Old 06-25-2020, 06:39 PM   #2055
justcosmic1
Human being with feelings
 
Join Date: Dec 2013
Posts: 109
Default

Quote:
Originally Posted by nofish View Post
Yes, it's possible.
Very briefly, you need to alter a 'config variable', zoomshowarm in this case.

Maybe open a dedicated thread here in the scripting forum (to not clutter this request thread) asking for help if you're up for learning scripting.
I'll take your advice and start a new thread which I will then link from here...
justcosmic1 is offline   Reply With Quote
Old 06-25-2020, 06:48 PM   #2056
justcosmic1
Human being with feelings
 
Join Date: Dec 2013
Posts: 109
Default

Maybe open a dedicated thread here in the scripting forum (to not clutter this request thread) asking for help if you're up for learning scripting. [/QUOTE]

Have broken it out to this new thread:
https://forum.cockos.com/showthread....88#post2310088

Have asked if anyone might be able to do an example script that I could then adapt as I add different items buried in menu's etc.
Meanwhile I will check the link you posted and see if I can get my head around that!
Many thanks again
justcosmic1 is offline   Reply With Quote
Old 06-25-2020, 07:30 PM   #2057
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,913
Default

Quote:
Originally Posted by justcosmic1 View Post
hi
Noob question here: I keep finding that I want to add simple actions that are currently not available: For example I wanted to create a button to toggle "Preferences\recording\Always show full track control on armed tracks".
AFAIK you'd have to use SWS extension, it has a way to set some of those settings, see zoomshowarm

this is just a test,..
Code:
-- Toggle always show full track control panel on armed tracks.lua

function ToolbarButton(enable) -- 0=off, 1=on
  local _, _, section_id, command_id = reaper.get_action_context()
  reaper.SetToggleCommandState(section_id, command_id, enable)
  reaper.RefreshToolbar2(section_id, command_id)
end

function Main()
  local val = reaper.SNM_GetIntConfigVar("zoomshowarm", 0)
  if not ((val & 1) == 1) then -- enable
    reaper.SNM_SetIntConfigVar("zoomshowarm", 1)
    ToolbarButton(1)
  else -- disable
    reaper.SNM_SetIntConfigVar("zoomshowarm", 0)
    ToolbarButton(0)
  end
end

Main()
reaper.defer(function () end)

Last edited by Edgemeal; 06-25-2020 at 07:45 PM. Reason: add url to Ultraschall
Edgemeal is offline   Reply With Quote
Old 06-26-2020, 03:53 PM   #2058
justcosmic1
Human being with feelings
 
Join Date: Dec 2013
Posts: 109
Default

Quote:
Originally Posted by Edgemeal View Post
AFAIK you'd have to use SWS extension, it has a way to set some of those settings, see zoomshowarm

this is just a test,..
Code:
-- Toggle always show full track control panel on armed tracks.lua

function ToolbarButton(enable) -- 0=off, 1=on
  local _, _, section_id, command_id = reaper.get_action_context()
  reaper.SetToggleCommandState(section_id, command_id, enable)
  reaper.RefreshToolbar2(section_id, command_id)
end

function Main()
  local val = reaper.SNM_GetIntConfigVar("zoomshowarm", 0)
  if not ((val & 1) == 1) then -- enable
    reaper.SNM_SetIntConfigVar("zoomshowarm", 1)
    ToolbarButton(1)
  else -- disable
    reaper.SNM_SetIntConfigVar("zoomshowarm", 0)
    ToolbarButton(0)
  end
end

Main()
reaper.defer(function () end)
First of all - Wow thank you !

I have just tested this and it get's me 100% of my request....and 75% to the behaviour I was aiming at:
It successfully changes the status of zoomshowarm - although it doesn't refresh the status in preferences until you close and then reopen preferences.
I also realise that in this case I was hoping to see the track height respond to the status of this script...(See 2 comments below...found a solution )

Anyway - I really appreciate the input! And I will have a look for any beginner resources in lua that might be relevant for Reaper

Last edited by justcosmic1; 06-26-2020 at 05:20 PM.
justcosmic1 is offline   Reply With Quote
Old 06-26-2020, 04:11 PM   #2059
justcosmic1
Human being with feelings
 
Join Date: Dec 2013
Posts: 109
Default

I think having just found sws actions to select or only select record armed tracks, plus a whole host of sws zoom options; that I can probably effectively put together a cycle action from those various components - and it looks like there may already be a "shown only record armed" tracks...so that's one less for me to do...

But still going to watch some Lua tutorials which I have funny enough found in French...so I'll have to practive my language skills too!
justcosmic1 is offline   Reply With Quote
Old 06-26-2020, 05:13 PM   #2060
justcosmic1
Human being with feelings
 
Join Date: Dec 2013
Posts: 109
Default

Hopefully this attachment will be visible which shows the cycle action I created with the provided ZoomShowArm script plus a couple of other actions.
https://forum.cockos.com/attachment....5&d=1593216362
It is most useful when you are zoomed all the way out vertically, to quickly toggle between the armed tracks showing/hiding their track controls, with the expected toggle between track heights.
I use a tool bar button hence the need for the toggles.
Very happy with the outcome of this - huge thanks again Edgemeal for providing the script with the core functionality I needed.


Hopefully someone else will find this useful too.
(I have attached the cycle action (.ini)file so it can be imported)
Attached Images
File Type: jpg ToggleZoomShowArm.JPG (44.9 KB, 295 views)
Attached Files
File Type: ini ToggleZoomShowArm_TrackHeight.ini (351 Bytes, 284 views)

Last edited by justcosmic1; 06-26-2020 at 05:24 PM.
justcosmic1 is offline   Reply With Quote
Old 06-26-2020, 05:40 PM   #2061
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

@justcosmic1
Your original request seems solved, nice.
Just some additional remarks:

Quote:
Originally Posted by justcosmic1 View Post
although it doesn't refresh the status in preferences until you close and then reopen preferences.
Yes, that's 'normal'.

Quote:
I also realise that in this case I was hoping to see the track height respond to the status of this script...(See 2 comments below...found a solution )
Would just need to add a TrackList_AdjustWindows call in the script to trigger a TCP redraw (isMinor = true means redraw TCP only, otherwise redraw TCP+MCP).
nofish is offline   Reply With Quote
Old 06-26-2020, 06:22 PM   #2062
justcosmic1
Human being with feelings
 
Join Date: Dec 2013
Posts: 109
Default

Hey NoFish - thanks for the additional input.

So are you saying I could get the additional behaviour with just that simple addition (Would just need to add a TrackList_AdjustWindows call in the script to trigger a TCP redraw (isMinor = true means redraw TCP only, otherwise redraw TCP+MCP).) and ditch all the bloated cycle action stuff?

If so that appeals to me as it seems a more streamlined and code efficient way to do things (says a guy with 0 coding experience )
justcosmic1 is offline   Reply With Quote
Old 06-26-2020, 06:34 PM   #2063
justcosmic1
Human being with feelings
 
Join Date: Dec 2013
Posts: 109
Default

I have just edited (and renamed) the script so that it now looks like this:

-- Toggle always show full track control panel on armed tracks.lua

function ToolbarButton(enable) -- 0=off, 1=on
local _, _, section_id, command_id = reaper.get_action_context()
reaper.SetToggleCommandState(section_id, command_id, enable)
reaper.RefreshToolbar2(section_id, command_id)
end

function Main()
local val = reaper.SNM_GetIntConfigVar("zoomshowarm", 0)
if not ((val & 1) == 1) then -- enable
reaper.SNM_SetIntConfigVar("zoomshowarm", 1)
ToolbarButton(1)
else -- disable
reaper.SNM_SetIntConfigVar("zoomshowarm", 0)
ToolbarButton(0)
end
end
function()
reaper.TrackList_AdjustWindows( isMinor=true )
end
Main()
reaper.defer(function () end)
justcosmic1 is offline   Reply With Quote
Old 06-26-2020, 06:50 PM   #2064
justcosmic1
Human being with feelings
 
Join Date: Dec 2013
Posts: 109
Default

At the moment I get an error 19: name is expected after "("

Referring to the first line of the new code I added..
justcosmic1 is offline   Reply With Quote
Old 06-26-2020, 07:37 PM   #2065
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,913
Default

Not tested but try this.

Code:
-- Toggle always show full track control panel on armed tracks.lua

function ToolbarButton(enable) -- 0=off, 1=on
  local _, _, section_id, command_id = reaper.get_action_context()
  reaper.SetToggleCommandState(section_id, command_id, enable)
  reaper.RefreshToolbar2(section_id, command_id)
end

function Main()
  local val = reaper.SNM_GetIntConfigVar("zoomshowarm", 0)
  if not ((val & 1) == 1) then -- enable
    reaper.SNM_SetIntConfigVar("zoomshowarm", 1)
    ToolbarButton(1)
  else -- disable
    reaper.SNM_SetIntConfigVar("zoomshowarm", 0)
    ToolbarButton(0)
  end
  reaper.TrackList_AdjustWindows(true) -- true: redraw TCP only, false: redraw TCP+MCP
end

Main()
reaper.defer(function () end)
Edgemeal is offline   Reply With Quote
Old 06-27-2020, 03:03 PM   #2066
justcosmic1
Human being with feelings
 
Join Date: Dec 2013
Posts: 109
Default

Quote:
Originally Posted by Edgemeal View Post
Not tested but try this.

Code:
-- Toggle always show full track control panel on armed tracks.lua

function ToolbarButton(enable) -- 0=off, 1=on
  local _, _, section_id, command_id = reaper.get_action_context()
  reaper.SetToggleCommandState(section_id, command_id, enable)
  reaper.RefreshToolbar2(section_id, command_id)
end

function Main()
  local val = reaper.SNM_GetIntConfigVar("zoomshowarm", 0)
  if not ((val & 1) == 1) then -- enable
    reaper.SNM_SetIntConfigVar("zoomshowarm", 1)
    ToolbarButton(1)
  else -- disable
    reaper.SNM_SetIntConfigVar("zoomshowarm", 0)
    ToolbarButton(0)
  end
  reaper.TrackList_AdjustWindows(true) -- true: redraw TCP only, false: redraw TCP+MCP
end

Main()
reaper.defer(function () end)
Just tested - works almost perfectly! Actually not only is it obviously a much neater way of doing it than my clunky cycle action; it also maintains perfectly the previous level of zoom and that of tracks. My cycle action gradually zoomed out which although may have a future use, was not what I intended.

The only slight anomaly is that I get a message every now and then saying that it's running in the background and asking "Would you like to terminate all instances of this script or launch a new instance".
But I don't see any major problem with that, but thought I'd make mention.
Don't know if this means it needs a tweak or if I just choose either "terminate all instances" or "launch new instance" and click "remember my answer for this script"

Anyway - apart from that it's fantastic - and I find very useful indeed.

Last edited by justcosmic1; 06-27-2020 at 03:16 PM.
justcosmic1 is offline   Reply With Quote
Old 06-27-2020, 04:50 PM   #2067
jnastic
Human being with feelings
 
jnastic's Avatar
 
Join Date: May 2009
Location: Montreal
Posts: 123
Default Script to change Format for Apply FX, Glue, Freeze, etc

Hi there.

There's already a MPL script to set the Render Format (Wav, FLAC, etc.).

If it's possible, I'd like the same thing, but for this : Format for Apply FX, Glue, Freeze, etc

Thank you!
jnastic is offline   Reply With Quote
Old 06-29-2020, 03:54 PM   #2068
justcosmic1
Human being with feelings
 
Join Date: Dec 2013
Posts: 109
Default Select section of looped item

I don't know if this is possible:
When you drag the right edge of an item and loop it - to then be able to select, (mute or cut) just one looped section:
Ideally by clicking with a mouse modifier.
If possible independent of the grid.

So far I can't even see any action to place the edit cursor at the start or end of a looped section...

If that's not possible, a script to simply split all the looped repetitions out to separate items could also be useful.

Hope you don't mind me putting in another request so soon - just fine tuning my Reaper installation at the mo and so all this stuff is coming up
justcosmic1 is offline   Reply With Quote
Old 06-29-2020, 10:39 PM   #2069
jkooks
Human being with feelings
 
Join Date: May 2020
Posts: 190
Default

Quote:
Originally Posted by justcosmic1 View Post
If that's not possible, a script to simply split all the looped repetitions out to separate items could also be useful.
If you are alright with using a tool that splits every looped portion into an item, X-Raym made a script that should cover your request: https://forum.cockos.com/showthread.php?t=154364

Last edited by jkooks; 06-29-2020 at 10:40 PM. Reason: Spell Check
jkooks is offline   Reply With Quote
Old 06-30-2020, 03:23 AM   #2070
justcosmic1
Human being with feelings
 
Join Date: Dec 2013
Posts: 109
Default

Quote:
Originally Posted by jkooks View Post
If you are alright with using a tool that splits every looped portion into an item, X-Raym made a script that should cover your request: https://forum.cockos.com/showthread.php?t=154364
Thanks for pointing this out - I did a search but didn't see this.
I suspect that this will be a good enough work around to get the job done and I see there are 2 scripts one keeping the items pooled, the other separating them.
My "dream concept" where you just shift click once on a looped section and it responds like a separate item; well that's maybe more something for the Reaper devs thana a realistic possibility by script - that said, maybe I will mention it to X-Raym incase it can be done from an adaptation of his script.

But for now this should get me close enough.
It will be interesting to see if it is grid line dependent or not...
justcosmic1 is offline   Reply With Quote
Old 06-30-2020, 05:45 AM   #2071
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,913
Default

Quote:
Originally Posted by justcosmic1 View Post
The only slight anomaly is that I get a message every now and then saying that it's running in the background and asking "Would you like to terminate all instances of this script or launch a new instance".
That can happen if you try to run a script again before the previous run has ended. Next time you see the message, you can enable "remember my answer" and click "Terminate instances" button.
Edgemeal is offline   Reply With Quote
Old 06-30-2020, 03:04 PM   #2072
justcosmic1
Human being with feelings
 
Join Date: Dec 2013
Posts: 109
Default

Quote:
Originally Posted by Edgemeal View Post
That can happen if you try to run a script again before the previous run has ended. Next time you see the message, you can enable "remember my answer" and click "Terminate instances" button.
Thanks for confirming that! I thought probably that was the option to go for, but good to have it confirmed.
justcosmic1 is offline   Reply With Quote
Old 07-01-2020, 03:13 PM   #2073
tufb
Human being with feelings
 
Join Date: Dec 2017
Posts: 152
Default

Quote:
Originally Posted by justcosmic1 View Post
If that's not possible, a script to simply split all the looped repetitions out to separate items could also be useful.
Quote:
Originally Posted by justcosmic1 View Post
My "dream concept" where you just shift click once on a looped section and it responds like a separate item


https://forum.cockos.com/showpost.ph...00&postcount=5

Enjoy.
tufb is offline   Reply With Quote
Old 07-02-2020, 04:51 PM   #2074
justcosmic1
Human being with feelings
 
Join Date: Dec 2013
Posts: 109
Default

Is it possible to impersonate a keyboard press of a mouse modifier in a script so it can be assigned to a button?

E.g. if you want to be away from the keyboard and you press on screen "ctrl" button, you can then select/unselect with with a click of the mouse whilst the button is toggled on. Or drag item to duplicate etcetera.

(PS I know that a complete onscreen keyboard could achieve this - but I am really looking for toolbar buttons.)
justcosmic1 is offline   Reply With Quote
Old 07-02-2020, 07:15 PM   #2075
justcosmic1
Human being with feelings
 
Join Date: Dec 2013
Posts: 109
Default

Quote:
Originally Posted by tufb View Post
WoW ! Thank you!
The Reaper community never ceases to amaze!
Going to try that out after some sleep!
justcosmic1 is offline   Reply With Quote
Old 07-03-2020, 12:52 PM   #2076
garygiles63
Human being with feelings
 
Join Date: Nov 2018
Posts: 70
Default S&M Notes

HI

I'm using the Insert Empty item to be able to insert scripts into Reaper, so someone can record and add Audio Description to videos.

I have following combination of actions

Insert empty Item
move cursor to nearest left edge
insert marker

With the S&M Notes window already open, is there a way to have the text cursor be active to start writing text without having to click on the S&M notes window 1st. This would really useful for when adding or selecting of an empty item.

I'm not very good at posting these type of queries, I hope it makes some sense.

Please do ask away if you need clarification on anything.

Look forward to any solutions to the above.

Thanks
Gary
garygiles63 is offline   Reply With Quote
Old 07-03-2020, 04:59 PM   #2077
Chimpscookie
Human being with feelings
 
Join Date: Sep 2019
Posts: 175
Default

I wish there's a script like this.

Select a track : Switch main toolbar to toolbar 1(dedicated for TCP actions)
Select an audio item : Switch main toolbar to toolbar 2(dedicated for audio editing)
Select a midi item : Switch main toolbar to toolbar 3(dedicated for midi editing)
Unselect tracks/items : go back to main toolbar

If it can be done with cycle actions, please do tell me how it is done.

Thanks ReaPeople. You guys are the best.
Chimpscookie is offline   Reply With Quote
Old 07-04-2020, 08:27 AM   #2078
Phazma
Human being with feelings
 
Join Date: Jun 2019
Posts: 2,872
Default

The action "Envelope: Delete all points in time selection" only deletes points in the currently selected envelope and it is not possible to select multiple envelopes. Anyone feels like making a script that deletes all envelope points within a time selection on all envelopes?
Phazma is online now   Reply With Quote
Old 07-04-2020, 08:51 AM   #2079
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,913
Default

Quote:
Originally Posted by Phazma View Post
The action "Envelope: Delete all points in time selection" only deletes points in the currently selected envelope and it is not possible to select multiple envelopes. Anyone feels like making a script that deletes all envelope points within a time selection on all envelopes?
One custom action I use,..

Code:
Custom: Delete visible envelope points in time selection for selected tracks

  SWS/BR: Apply next action to all visible envelopes in selected tracks
  Envelope: Delete all points in time selection
Edgemeal is offline   Reply With Quote
Old 07-04-2020, 12:18 PM   #2080
jkooks
Human being with feelings
 
Join Date: May 2020
Posts: 190
Default

Quote:
Originally Posted by Chimpscookie View Post
I wish there's a script like this.

Select a track : Switch main toolbar to toolbar 1(dedicated for TCP actions)
Select an audio item : Switch main toolbar to toolbar 2(dedicated for audio editing)
Select a midi item : Switch main toolbar to toolbar 3(dedicated for midi editing)
Unselect tracks/items : go back to main toolbar


I attached a script that should do what you need it to, but their are a few caveats - the biggest one being it doesn't necessarily work. The reason for this is because it seems like there is an underlying issue where Reaper's native action for switching toolbars isn't working, so the only way to change the toolbar is if you right click on it (that I know of).

That being said, I did write some extra code so it will use the "open/close toolbar" actions rather than the "switch" ones, resulting in the toolbar of your choice being a popup rather than just switching the main one at the top of the window. If you do want this feature, all you need to do to get that to work is uncomment the lines (remove the "--") directly underneath where it says "uncomment if you want the toolbar window to be a pop up", and you should probably comment out (add the "--" in front of the line) where it says "switches toolbar" on the line.

I'm going to right a bug up for the broken Reaper actions (I found a post on it dated in 2016 that said they weren't working, so maybe they have been broken since then?) but if someone else can find a way around changing the toolbars without the native actions then that would also be great!

Also, if you want to have the script automatically start running when Reaper starts up you will have to add it by using "SWS/S&M: Set global startup action" if you have SWS or follow these instructions: https://forum.cockos.com/showpost.ph...2&postcount=20


Feel free to let me know if there are any issues!
Attached Files
File Type: lua Change Toolbar Based On Selected Context.lua (2.3 KB, 217 views)
jkooks 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 09:35 AM.


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