Old 03-20-2018, 06:45 PM   #1
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 607
Default API: Get/SetProjectStateChunk

I would love to see the whole project exposed as StateChunk, as there's a ton of nice and interesting stuff in the project itself, especially the rendering-settings, which I would love to be able to modify without the hassle of using the rendering-dialog.
That way, I could write me even more customized rendering-scripts, than the current rendering-functions provide as functionalities.

There's also many other tools or other project-setting-relevant stuff(recording-settings, the project-bay, etc) that could be modified or analysed in the background quite easily that way.

You already have Get/SetStateChunks for Items, Envelopes and Tracks.
So go big and give us the rest as well, please

Last edited by mespotine; 07-05-2018 at 09:42 AM.
mespotine is offline   Reply With Quote
Old 03-21-2018, 08:02 AM   #2
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 7,458
Default

I'd prefer proper APIs for that stuff, dealing with the text state chunks is pretty annoying.
__________________
For info on SWS Reaper extension plugin (including Xenakios' previous extension/actions) :
http://www.sws-extension.org/
https://github.com/Jeff0S/sws
--
Xenakios blog (about HourGlass, Paul(X)Stretch and λ) :
http://xenakios.wordpress.com/
Xenakios is online now   Reply With Quote
Old 03-22-2018, 02:48 PM   #3
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 607
Default

I know, but at least, you could do it then immediately.
mespotine is offline   Reply With Quote
Old 07-05-2018, 09:54 AM   #4
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 1,314
Default

+1! Would be super useful.
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan Römer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is online now   Reply With Quote
Old 07-05-2018, 10:00 AM   #5
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: The vast, frozen wasteland of western Canadia.
Posts: 5,552
Default

Yes please.

Quote:
Originally Posted by Xenakios View Post
I'd prefer proper APIs for that stuff, dealing with the text state chunks is pretty annoying.
Agreed, but exposing the chunk is a hell of a lot easier to implement than individual functions. There are a number of Track/FX/Item/Envelope parameters we don't have API calls for, but GetSetChunk at least lets us do it.

As annoying as it is, it's also pretty straightforward to write a wrapper that grabs the chunk and puts it in a table as chunk.TRACK_NAME or whatever, then another wrapper to convert it back.
__________________
Currently enrolled in a coding bootcamp; don't expect timely responses from me.
Default 5.0 Nitpicky Edition / GUI tutorial for Lua / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate / ReaPack
Lokasenna is offline   Reply With Quote
Old 07-05-2018, 10:44 AM   #6
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,237
Default

+1 !!
X-Raym is offline   Reply With Quote
Old 07-08-2018, 01:00 PM   #7
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 607
Default

It would also allow access to the Pooled-Automation-Items themselves, which is impossible to do right now.

As well as the RPP-Project Bay, which would be nice to know. Otherwise, it is only available in the Project-Bay-dialog, but can't be accessed that way, AFAIK.
mespotine is offline   Reply With Quote
Old 08-07-2018, 10:20 AM   #8
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 607
Default

Ping
mespotine is offline   Reply With Quote
Old 08-07-2018, 03:04 PM   #9
rstockm
Human being with feelings
 
rstockm's Avatar
 
Join Date: May 2012
Location: Berlin, Germany
Posts: 73
Default

+1 for this FR
rstockm is offline   Reply With Quote
Old 08-08-2018, 03:58 PM   #10
Neutronic
Human being with feelings
 
Neutronic's Avatar
 
Join Date: Sep 2013
Posts: 250
Default

+1! It would be really handy to have it.
Neutronic is online now   Reply With Quote
Old 08-09-2018, 12:47 PM   #11
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 2,196
Default

Quote:
Originally Posted by mespotine View Post
I would love to see the whole project exposed as StateChunk
Perhaps you can consider the project RPP the project chuck, at least for "getting" the chunk.
juliansader is offline   Reply With Quote
Old 08-09-2018, 01:23 PM   #12
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: The vast, frozen wasteland of western Canadia.
Posts: 5,552
Default

Quote:
Originally Posted by juliansader View Post
Perhaps you can consider the project RPP the project chuck, at least for "getting" the chunk.
Only if the project has been saved and isn't dirty.
__________________
Currently enrolled in a coding bootcamp; don't expect timely responses from me.
Default 5.0 Nitpicky Edition / GUI tutorial for Lua / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate / ReaPack
Lokasenna is offline   Reply With Quote
Old 08-13-2018, 04:48 AM   #13
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 607
Default

And setting states isn't possible that way at all. Unless you reload the altered project.

Bad idea, while you're recording...
mespotine is offline   Reply With Quote
Old 10-12-2018, 06:13 AM   #14
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 607
Default

Bump...
__________________
Ultraschall-API: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs for Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Old 11-16-2018, 06:55 AM   #15
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 607
Default

Bumping back into the light
__________________
Ultraschall-API: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs for Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Old 11-16-2018, 10:32 PM   #16
deeb
Human being with feelings
 
deeb's Avatar
 
Join Date: Feb 2017
Posts: 1,940
Default

+1 this would be really nice!
Other then rendering scripts , maybe we could alter soundcard latency by scripting? This would be awesome!
deeb is offline   Reply With Quote
Old 11-17-2018, 11:54 AM   #17
deeb
Human being with feelings
 
deeb's Avatar
 
Join Date: Feb 2017
Posts: 1,940
Default

Maybe there is a reason for cockos not letting to set the project chunk! How about request some specific API that would be useful meanwhile?
deeb is offline   Reply With Quote
Old 11-18-2018, 01:55 PM   #18
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 607
Default

I think too, as some settings may interfere too much with Reaper's internal handling of things.
But I would still love to have it, even if the devs remove the entries too problematic for the statechunk-process.
I could live with a simplified one, it would still solve tons of usecases.

Quote:
Other then rendering scripts , maybe we could alter soundcard latency by scripting? This would be awesome!
As far as I know, the soundcard-latency settings aren't stored per project in ProjectStateChunks, but rather globally(in reaper.ini).
For that, I think, a dedicated function would be better.
__________________
Ultraschall-API: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs for Reaper: https://forum.cockos.com/showthread.php?t=207635
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 10:21 AM.


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