Old 04-07-2020, 04:59 PM   #1
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 1,719
Default Auto run a script upon project load?

Is there a way to run a script upon project load?

My goal is to run a short script that scans the SR of the first audio item and makes sure it matches the SR of the project. If there is a mis-match, then I get a "Warning" dialog box.

Would this be possible? I mean.. I can easily write the script, but I'm not sire it there is a special auto-launch folder in the Reaper hierarchy or if there is even a way to do this?

Thanks

Cheers,

Andrew K
__________________
Cheers... Andrew K
Reaper v6.80+dev0621 - June 21 2023 • Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe.
Thonex is offline   Reply With Quote
Old 04-07-2020, 05:10 PM   #2
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,622
Default

I think SWS had something like that but I could be wrong...
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   Reply With Quote
Old 04-07-2020, 05:19 PM   #3
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 1,719
Default

Quote:
Originally Posted by mespotine View Post
I think SWS had something like that but I could be wrong...
I just did a bunch of different search criteria queries with "SWS" and couldn't find anything.

Will keep digging... anyone else?

Cheers,

Andrew K
__________________
Cheers... Andrew K
Reaper v6.80+dev0621 - June 21 2023 • Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe.
Thonex is offline   Reply With Quote
Old 04-07-2020, 05:47 PM   #4
kaylec
Human being with feelings
 
kaylec's Avatar
 
Join Date: Oct 2016
Posts: 128
Default

I asked about this somewhere else as was told “you can set it as SWS global startup action” but it was also suggested to set a shortcut and trigger when needed. This was for a different script, so take it for what it’s worth. Hope that’s helps.
__________________
Kayle
MacPro • coming over from Logic Pro
www.clementunes.com
kaylec is offline   Reply With Quote
Old 04-07-2020, 06:35 PM   #5
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 1,719
Default

Quote:
Originally Posted by kaylec View Post
I asked about this somewhere else as was told “you can set it as SWS global startup action” but it was also suggested to set a shortcut and trigger when needed. This was for a different script, so take it for what it’s worth. Hope that’s helps.
Brilliant!! I think that is what I needed.

Thanks for your help kaylec!!

Cheers,

Andrew K
__________________
Cheers... Andrew K
Reaper v6.80+dev0621 - June 21 2023 • Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe.
Thonex is offline   Reply With Quote
Old 04-07-2020, 07:06 PM   #6
kaylec
Human being with feelings
 
kaylec's Avatar
 
Join Date: Oct 2016
Posts: 128
Default

Happy to be able to help and return the favor (after all the help you’ve given me over the years.)
__________________
Kayle
MacPro • coming over from Logic Pro
www.clementunes.com
kaylec is offline   Reply With Quote
Old 04-07-2020, 07:56 PM   #7
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 1,719
Default

Quote:
Originally Posted by kaylec View Post
Happy to be able to help and return the favor (after all the help you’ve given me over the years.)
Has it been that long?? LOL

I guess so... I just noticed I joined 2 years ago

Time flies when you're having fun
__________________
Cheers... Andrew K
Reaper v6.80+dev0621 - June 21 2023 • Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe.
Thonex is offline   Reply With Quote
Old 04-07-2020, 08:47 PM   #8
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,960
Default

'__startup.lua' in scripts folder is run after loading Reaper (if exists).
mpl is offline   Reply With Quote
Old 04-08-2020, 02:59 AM   #9
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,622
Default

But doesn't help with projectload unfortunately.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   Reply With Quote
Old 04-08-2020, 03:45 AM   #10
IXix
Human being with feelings
 
Join Date: Jan 2007
Location: mcr:uk
Posts: 3,889
Default

SWS/S&M: Set project startup action
IXix is offline   Reply With Quote
Old 04-08-2020, 10:39 AM   #11
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 1,719
Default

Quote:
Originally Posted by IXix View Post
SWS/S&M: Set project startup action
Yep... that's the one. J

@mespotine..

You just have to make sure you save the project with the SWS assignment. Or, if you know you will need this script on all projects that you load, save it to your default project template.

Cheers,

Andrew K
__________________
Cheers... Andrew K
Reaper v6.80+dev0621 - June 21 2023 • Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe.
Thonex 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 07:30 AM.


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