There's a script I have that toggles between the most compact view of all of the slave tracks of a folder and the largest, fully expanded view. This, however, leaves out the very useful medium zoom-out view. Could anyone edit the script so it includes the medium zoom option?
function main() // local (i, j, item, take, track)
(
Undo_BeginBlock(); // Begining of the undo block. Leave it at the top of your main function.
// LOOP TRHOUGH SELECTED TRACKS
i = 0; // INITIALIZE loop through selected tracks
loop(CountSelectedTracks(0), (track = GetSelectedTrack(0, i)) ? (
// ACTIONS
GetMediaTrackInfo_Value(track, "I_FOLDERCOMPACT") == 0 ? (
SetMediaTrackInfo_Value(track, "I_FOLDERCOMPACT", 2);
)
SetMediaTrackInfo_Value(track, "I_FOLDERCOMPACT", 0);
);
); // ENDIF TRACK
i += 1; // INCREMENT loop through selected tracks
); // ENDLOOP through selected tracks
Undo_EndBlock("My action", -1); // End of the undo block. Leave it at the bottom of your main function.
);
Thanks