Hi,
Is it possible to query the state of an action/function of a currently-loaded REAPER project?
Specifically I want to find out whether the project has loop/cycle enabled.
I want to know this when the project loads, or shortly after.
The reason I want to know this is that, I am initialising my 'loop variable' to zero (in my .cpp) which is good as long as the project is Saved without Loop/Cycle mode enabled.
If Loop/Cycle is enabled when the project is saved, the next time I start the project the status of the Loop LED (on the control surface) is inverted. i.e. The LED=OFF when loop is enabled, and LED=ON when loop is disabled.
I'll give it some more thought, but, at present the only way around this I can think of is that I need to query the state the project's Loop/Cycle status and set my 'loop variable' accordingly.
Anyone know if this is possible, or have another solution for this?
Clearly this also applies to any toggle-state within the project...
Any help, as always, greatly appreciated!
Many thanks,
Deric.