Toggle Folder Tracks Open/Closed
I tried this from the Sound Flow presets in track visibility. From what I can tell it only opens. It does not toggle open and closed. Am I missing something.
if (!sf.ui.proTools.isRunning) throw `Pro Tools is not running`;
sf.ui.proTools.appActivateMainWindow();
sf.ui.proTools.selectedTrack.folderTrackSetOpen();
- Kitch Membery @Kitch2022-02-02 09:41:22.042Z
Hi @J_R_Chappell,
This should do the trick :-)
if (!sf.ui.proTools.isRunning) throw `Pro Tools is not running`; sf.ui.proTools.appActivateMainWindow(); sf.ui.proTools.selectedTrack.folderTrackSetOpen({targetValue:"Toggle"});
- JIn reply toJ_R_Chappell⬆:J.R. Chappell @J_R_Chappell
Thanks Kitch,
There is still something wrong.
Here is my script
sf.ui.proTools.trackSelectByName({
names: ["AAF"],
});if (!sf.ui.proTools.isRunning) throw
Pro Tools is not running
;sf.ui.proTools.appActivateMainWindow();
sf.ui.proTools.selectedTrack.folderTrackSetOpen({targetValue:"Toggle"});
When I run it is still opening the folder but not closing it and I get this error.
Folder Open/Close state didn't update (Show AAFs Line 10)
samuel henriques @samuel_henriques
Could the track size be too small so the folder icon on the track is not visible?
- JIn reply toJ_R_Chappell⬆:J.R. Chappell @J_R_Chappell
Yes! That was it!
Thank you sooo much
samuel henriques @samuel_henriques
If you really want, it's possible to write something to open/close the folder from the top left popup of the track, when the track so small the icon is hidden.