Old 06-13-2017, 09:31 AM   #1
benf
Human being with feelings
 
benf's Avatar
 
Join Date: Oct 2008
Location: France
Posts: 2,064
Default 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
__________________
Listen and download my music on https://benest.bandcamp.com/
benf is offline   Reply With Quote
Old 06-13-2017, 09:54 AM   #2
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 1,309
Default

SetTrackStateChunk
__________________
SoundCloud | MPL Scripts / ReaPack | Donate
mpl is offline   Reply With Quote
Old 06-13-2017, 03:59 PM   #3
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 4,033
Default

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
__________________
HeDaScripts for REAPER | VIP Donations
heda is offline   Reply With Quote
Old 06-14-2017, 07:58 AM   #4
benf
Human being with feelings
 
benf's Avatar
 
Join Date: Oct 2008
Location: France
Posts: 2,064
Default

@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.
__________________
Listen and download my music on https://benest.bandcamp.com/
benf is offline   Reply With Quote
Old 06-14-2017, 02:06 PM   #5
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 4,033
Default

Quote:
Originally Posted by benf View Post
@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?
__________________
HeDaScripts for REAPER | VIP Donations
heda is offline   Reply With Quote
Old 06-14-2017, 02:19 PM   #6
benf
Human being with feelings
 
benf's Avatar
 
Join Date: Oct 2008
Location: France
Posts: 2,064
Default

Oh ! Excuse me. Didn't understand that at first. You explained it well, though.
Thanks a lot !
__________________
Listen and download my music on https://benest.bandcamp.com/
benf 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:59 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.