FR: Shortcuts for layouts

Discussion about: tracktion.com
RELATED
PRODUCTS

Post

Peter Widdicombe wrote: Wed Feb 24, 2021 12:25 am Not sure exactly what you're looking for, but you can create 2 really simple macros to set your desired views, and then call them up anytime with a keystroke...
W11view.jpg

With this <ctrl>F7 gives me a normal view, and <crtl>F8 gives me a mixer view; as those I had saved just previously.

The toughest part is finding a convenient/unused key combination.
Thanks, that's what i did, but i'd rather have it on one key.:)

Post

pough wrote: Wed Feb 24, 2021 5:51 pm Looks like variable are public if they're outside of any blocks and you don't use 'var' to declare them. I made this macro and set a keyboard shortcut to it. I can toggle between the two Layouts I have made.

Code: Select all

var viewOne = 'Composer';
var viewTwo = 'ClearMix';

// public variable myLayout: give it a default value if not yet instantiated
myLayout = (myLayout != '') ? myLayout : viewOne; // IMPORTANT NOT TO USE "var"

if( myLayout == viewOne ) {
    Tracktion.loadViewStateWithName (viewTwo);
    myLayout = viewTwo;
} else {
    Tracktion.loadViewStateWithName (viewOne);
    myLayout = viewOne;
}
That's exactly what i need! Thanks a lot!

Post Reply

Return to “Tracktion”