Old 04-30-2020, 11:10 PM   #1
vanhaze
Human being with feelings
 
vanhaze's Avatar
 
Join Date: Jul 2012
Location: Netherlands
Posts: 5,247
Default Multiple launches of Actions possible at Reaper startup ?

Dear all,

I wanna have more than 1 Action (/Script) fired up when i startup Reaper.
Is this possible and if so, howto ?

Thx in advance for helping me with this.
__________________
Macbook Pro INTEL | Reaper, always latest version | OSX Ventura | Presonus Studio 24c
My Reaper Tips&Tricks YouTube Channel: https://www.youtube.com/user/vanhaze2000/playlists
vanhaze is offline   Reply With Quote
Old 04-30-2020, 11:15 PM   #2
EpicSounds
Human being with feelings
 
EpicSounds's Avatar
 
Join Date: Jul 2009
Posts: 7,592
Default

Custom actions exist

😃
__________________
REAPER Video Tutorials, Tips & Tricks and more at The REAPER Blog
EpicSounds is offline   Reply With Quote
Old 04-30-2020, 11:23 PM   #3
vanhaze
Human being with feelings
 
vanhaze's Avatar
 
Join Date: Jul 2012
Location: Netherlands
Posts: 5,247
Default

Ooh..ofcourse Jon , Stupid me:
I just have to make one Custom Action which contains all the Actions/Scripts which i wanna have fired up at Reaper start.
And then set that Custom Action as Global Startup Action.


More coffee please !


Thx Jon !
__________________
Macbook Pro INTEL | Reaper, always latest version | OSX Ventura | Presonus Studio 24c
My Reaper Tips&Tricks YouTube Channel: https://www.youtube.com/user/vanhaze2000/playlists
vanhaze is offline   Reply With Quote
Old 05-01-2020, 06:40 AM   #4
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,629
Default

__startup.lua is also a possibility
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 05-01-2020, 10:56 AM   #5
vanhaze
Human being with feelings
 
vanhaze's Avatar
 
Join Date: Jul 2012
Location: Netherlands
Posts: 5,247
Default

Thx for your help!


I don't see that one in my Action List.
Do i need a repository added in my ReaPack for it ?
__________________
Macbook Pro INTEL | Reaper, always latest version | OSX Ventura | Presonus Studio 24c
My Reaper Tips&Tricks YouTube Channel: https://www.youtube.com/user/vanhaze2000/playlists
vanhaze is offline   Reply With Quote
Old 05-01-2020, 11:43 AM   #6
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,629
Default

Quote:
Originally Posted by vanhaze View Post
Thx for your help!


I don't see that one in my Action List.
Do i need a repository added in my ReaPack for it ?
__startup.lua?

No, you just need to create it in your scripts-folder and insert the reaper.Main_OnCommand()-functions in them. Will be run when you startup Reaper.

From my docs:

Quote:
A script named "__startup.lua|.eel" will be started automatically by Reaper at startup. You can have both; Reaper will run __startup.eel first, __startup.lua second.
This __startup-script doesn't need to be registered into the actionlist of Reaper; it's pure existence in the scripts-folder of the resources-folder of Reaper is sufficient for it to be run.
https://mespotin.uber.space/Ultrasch...mentation.html
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 05-01-2020, 02:11 PM   #7
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,128
Default

Using _startup.lua you can preprogram very complex workflow each time Reaper is started.

Or you can just program a few simple actions
lexaproductions is offline   Reply With Quote
Old 02-24-2021, 06:58 AM   #8
Tim Rideout
Human being with feelings
 
Tim Rideout's Avatar
 
Join Date: Jan 2013
Location: Montreal, Canada
Posts: 258
Default

Could someone provide a link, or a little more detail on how to
run multiple startup actions when Reaper opens? I would like to run the REATICULATE script, and the REALAUNCHER script...

Love,
Mr ScriptN00b

Quote:
Originally Posted by lexaproductions View Post
Using _startup.lua you can preprogram very complex workflow each time Reaper is started.

Or you can just program a few simple actions
__________________
---
www.TimRideout.com
Tim Rideout is offline   Reply With Quote
Old 02-24-2021, 07:02 AM   #9
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,629
Default

First, you create a __startup.lua(if not already existing) into the scripts-folder. Keep in mind, there are two(!) _ in the filename!

Then you run the actions within that.

You convert the ActionCommandID of the action to its command-id-number, using this function:

https://mespotin.uber.space/Ultrasch...dCommandLookup

and then you use this command-id to run the action with this function:
https://mespotin.uber.space/Ultrasch...Main_OnCommand

Repeat, until you're done with all actions that you want to start.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine 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 01:06 PM.


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