|
|
|
06-13-2017, 09:31 AM
|
#1
|
Human being with feelings
Join Date: Oct 2008
Location: France
Posts: 3,698
|
LUA and track templates
Hi,
I searched in the API functions, but didn't find any way to load track templates using a lua script. Does anyone know if this is possible ?
Thanks
|
|
|
06-13-2017, 09:54 AM
|
#2
|
Human being with feelings
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,960
|
SetTrackStateChunk
|
|
|
06-13-2017, 03:59 PM
|
#3
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,239
|
yes! this is easier than dealing with chunks, but of course you can always do chunks if you need more advanced use.
Quote:
reaper.Main_openProject(string name)
opens a project. will prompt the user to save, etc.
if you pass a .RTrackTemplate file then it adds that to the project instead
|
|
|
|
06-14-2017, 07:58 AM
|
#4
|
Human being with feelings
Join Date: Oct 2008
Location: France
Posts: 3,698
|
@MPL :
Yes, of course ! I was focusing on track templates, but this could be a good solution. Easier if track templates are usable chunks !
@Heda :
Thanks for the answer. But my purpose is to open track templates using a lua script, even in an existing project.
|
|
|
06-14-2017, 02:06 PM
|
#5
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,239
|
Quote:
Originally Posted by benf
@Heda :
Thanks for the answer. But my purpose is to open track templates using a lua script, even in an existing project.
|
it's exactly what it does. it inserts the track template in your existing project. Isn't that what you need?
|
|
|
06-14-2017, 02:19 PM
|
#6
|
Human being with feelings
Join Date: Oct 2008
Location: France
Posts: 3,698
|
Oh ! Excuse me. Didn't understand that at first. You explained it well, though.
Thanks a lot !
|
|
|
04-15-2019, 11:32 AM
|
#7
|
Human being with feelings
Join Date: Mar 2007
Location: Denver, CO
Posts: 633
|
Is there a way to specify the track it gets loaded to?
Ideally, I'd like to be able to replace a specific track, although of course I could delete the old track first.
I guess I could add it and move it. I'll try that.
|
|
|
04-15-2019, 04:31 PM
|
#8
|
Human being with feelings
Join Date: Mar 2007
Location: Denver, CO
Posts: 633
|
Cool, works great!
When I gave it a fully qualified track template path, it loads without prompt.
Now I'm wondering if I can save track templates the same way... doesn't seem like the reaper save method allows me to force a name and extension.
EDIT: Nevermind. I am going to move to saving and loading fxchains instead, I think.
Last edited by woodslanding; 04-15-2019 at 09:52 PM.
|
|
|
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 09:13 AM.
|