Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Feature Requests

Reply
 
Thread Tools Display Modes
Old 01-12-2022, 10:00 AM   #1
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 6,864
Default API: Export track(s) template(s) to a file (DONE)

We have a way to import track templates into the project by using the reaper.Main_openProject(string name)
I need another API function to export Track Template of selected tracks to a file
something like: reaper.Main_SaveTracktemplate(string filename)
Two reasons:
1) Because using the action to save template, always prompts for a filename path... and I want to set the file path without user intervention.

2) I have seen there are differences between exporting the track chunk data to a file and the track template data that is generated by the normal save template action. SO I guess the best would be if REAPER provides the API to do that from a script, rather than investigate how to do it.

here is an example of the differences but there could be more differences on envelopes etc... I have not tested all:

normal export:
<ITEM {7C6BD353-E7E5-C0B3-0391-7C1D3DB8B49A}
POSITION 1 2
SNAPOFFS 0 0
LENGTH 2.5 5

script export:
<ITEM
POSITION 1
SNAPOFFS 0
LENGTH 2.5


Thank you

Last edited by heda; 02-14-2022 at 09:51 AM.
heda is offline   Reply With Quote
Old 01-13-2022, 10:20 AM   #2
Reflected
Human being with feelings
 
Reflected's Avatar
 
Join Date: Jul 2009
Posts: 3,134
Default

+1

This is one of my favorite scripts on reaper but without this API this script will not work properly.
__________________
FR: FX-Container
Reflected is offline   Reply With Quote
Old 01-18-2022, 03:26 AM   #3
UknownSource
Human being with feelings
 
UknownSource's Avatar
 
Join Date: May 2020
Posts: 344
Default

+1 of course.
__________________
"FX-Container"
UknownSource is offline   Reply With Quote
Old 01-31-2022, 12:21 PM   #4
Reflected
Human being with feelings
 
Reflected's Avatar
 
Join Date: Jul 2009
Posts: 3,134
Default

bump for this awesome script that need your help devs
__________________
FR: FX-Container
Reflected is offline   Reply With Quote
Old 02-09-2022, 05:08 AM   #5
schwa
Administrator
 
schwa's Avatar
 
Join Date: Mar 2007
Location: NY
Posts: 14,254
Default

It's not quite as simple as an API function to bypass the choose-file dialog, because there are other options in the dialog (include track items, include envelopes). But we should be able to do something.
schwa is offline   Reply With Quote
Old 02-09-2022, 08:05 AM   #6
UknownSource
Human being with feelings
 
UknownSource's Avatar
 
Join Date: May 2020
Posts: 344
Default

Quote:
Originally Posted by schwa View Post
It's not quite as simple as an API function to bypass the choose-file dialog, because there are other options in the dialog (include track items, include envelopes). But we should be able to do something.
Much appreciated!
Thanks
__________________
"FX-Container"
UknownSource is offline   Reply With Quote
Old 02-09-2022, 12:55 PM   #7
Reflected
Human being with feelings
 
Reflected's Avatar
 
Join Date: Jul 2009
Posts: 3,134
Default

Quote:
Originally Posted by schwa View Post
It's not quite as simple as an API function to bypass the choose-file dialog, because there are other options in the dialog (include track items, include envelopes). But we should be able to do something.
Thank you sir!
Love is on the air ❤❤❤❤❤
__________________
FR: FX-Container
Reflected is offline   Reply With Quote
Old 02-12-2022, 11:56 AM   #8
Reflected
Human being with feelings
 
Reflected's Avatar
 
Join Date: Jul 2009
Posts: 3,134
Default

@Heda
will it work now ?

https://forum.cockos.com/showthread.php?t=263025

Quote:
Originally Posted by Edgemeal View Post
+ ReaScript: add Main_SaveProjectEx, to save project or track template with a specific filename and options [t=261802]

Thank you so much Schwa!
__________________
FR: FX-Container
Reflected is offline   Reply With Quote
Old 02-14-2022, 09:50 AM   #9
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 6,864
Default

Yes it will work perfectly! thank you very much schwa
heda is offline   Reply With Quote
Old 02-17-2022, 11:53 AM   #10
UknownSource
Human being with feelings
 
UknownSource's Avatar
 
Join Date: May 2020
Posts: 344
Default

Ty Schwa!
__________________
"FX-Container"
UknownSource 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:11 PM.


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