Quote:
Originally Posted by tXShooter
A couple of questions on how Reaper does things:
1) When you load a project in Reaper, how does the script get notified?
2) How does a script load information from the .rpp file (i.e. Markers, Volume Levels, etc)? (is there an API for that?)
|
1) The scripting API has no support for notifications. (And the situation isn't that great for C++ extension plugins either.) You might be able to hack something with a polling script implemented via the defer mechanism. (That is, repeatedly checking has some property or properties somewhere changed that could indicate a project has loaded.)
2) If you have a project open, there are APIs to deal with markers, track properties, automation envelopes and so on. But if the project is not open in Reaper and you just have the .rpp file, you would need to read in and parse the file yourself. After parsing the relevant sections, you may be able to insert them into an existing project or change an existing project based on them.
These questions would be better suited for the scripting subforum, by the way.