RE: Finding the track for a selection
2004/11/16 19:17:23
(permalink)
Thanks for the help, fellows.
I think I will be able to use "GetCurrentTrack".
I'm not sure about using the channel number.. this would mean I would need to make all my events in the channel of the same number as the track, which seems a bit awkward. I try to keep everything in the first channel, although I admit to being somewhat confused as to how to take advantage of channels( currently they are more nuisance for me than anything else ).
I tried to work around the problem by creating a panel with buttons that launch my track editing function on a particular track( so I don't need to enter it ). The panel button has a cal script that includes a variables file, sets the variables, then includes the main file (One of the variables is track number).
If I could get the track for the event, however, that would be best.
I've noticed people bemoaning not having arrays in CAL. Has anyone tried using a designated temporary scratch track for this purpose? One could store any number of events in different channels of a scratch track. These events could stand for real events, or could simply be abstract array data.
Duncan