Quote:
Originally Posted by J Reverb
How to select next/previous item on track, assuming that an item has already been selected. I would imagine you would need 2 separate scripts here.
|
No need for multiple scripts. Think it through...
1. Check if there's an item selected
2. If there is, store its ID and find which track it's on
3. Check all items on the track, from beginning/end until you find the selected item
4. Check if there's another item after/before
5. If there is, update the selection.
It's (mostly) just a matter of working out the necessary steps and then trawling through the (admittedly rather intimidating) API to find the functions that you need.
Next you have to spend some time scratching your head trying to figure out why it's not working how you think it should.
If head scratching doesn't fix it, you come on the forum, ask for help and then some clever sod shows you a way to do it that uses 80% less code. Well, that's my strategy anyway.