Thanks, that's what i did, but i'd rather have it on one key.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.
FR: Shortcuts for layouts
-
- KVRist
- Topic Starter
- 59 posts since 10 Apr, 2018
-
- KVRist
- Topic Starter
- 59 posts since 10 Apr, 2018
That's exactly what i need! Thanks a lot!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; }