Query armed state of selected track in multitrack?
On my continuing quest to buld the perfect CEP Audition Punch & Roll extension, I've got a question.
I've got a full, non-destructible extension working for Punch & Roll on Audition now, which I'm planning to release on the marketplace for free. -
Adobe Audition Punch & Roll Extension - Non-Destructive - YouTube
It's a significant upgrade over my previous destructive, waveform-only version, and infinitely more reliable.
Right now, however, I have to enforce an 'only record on track 1' limitation for the extension.
The reason for this is that I have no other way to guarantee that the SELECTED track is the same track that the recording is taking place on, so trimming clips doesn't work properly if you have a different track selected than the one that is armed to record.
I currently work around this by 'shifting to previous track' multiple times before starting a punch (i.e. ensuring that track 1 is always the selected track.)
This is pretty silly, and curtails some of the more advanced use cases that folks are asking for.
So, my question(s) are relatively simple -
1) Is there a way to query whether recording is armed on the SELECTED track? I can query whether recording is enabled, but that doesn't take into account track selection - it just returns true if ANY track is armed. If I can query this, and the current selected track is not armed, I can pop a dialog saying 'nope, please select an armed track, sorry!' and prevent mishaps.
2) Can I force your track selection TO an armed track? If I can do that, I can force your track selection to the first armed track in sequence, and that similarly solves the problem.
Thanks for any help!
Travis
