select track by name
Hi,
I'm finding an issue with select track by name. I've set up some 3 folder tracks with some tracks inside. I've made a macro that selects the folder track by name and then toggles the folder track open/close. Whats happening is its working fine if I open the bottom folder track first, then the middle one then the top one. But if I open the top folder track first the track select moves to one of the tracks inside the first folder track, rather than the track I've asked it to select. Any ideas? For the moment I've reverted to using scroll to track, but I think this would be faster if it worked.
Below is the code I'm using:
sf.ui.proTools.trackGetByName({ name: "GUIDE", makeVisible: true }).track.trackSelect();
sf.ui.proTools.selectedTrack.folderTrackSetOpen();
Thanks,
Alex
- Raphael Sepulveda @raphaelsepulveda2021-07-22 01:31:15.326Z
Hello Alex!
All you're missing is
sf.ui.proTools.mainWindow.invalidate();
at the beginning of your script to refresh the track list once the folder is opened/closed.