LOCKSELECTEDTRACK
[] LOCKSELECTEDTRACK
or [] LST
LOCKSELECTEDTRACK
This is a global UA to catch the currently selected track and store it in the variable %lockedtrack%
for the position and %lockedtrackname%
for the name to use in any context as working variables in CXP. e.g. to lock in actions or bindings to a selected track and not worry about if you select another track. Think of it as a freezed SEL operator.
[] LOCKSELECTEDTRACK
will fill the variables. You might want to use a macro to then do something with that variables. As mentioned earlier, variables and macros are a sort of toxic combination. but there is a solution:
[] LOCKSELECTEDTRACKMACRO
or [] LSTM
this action now put the number of the actual selected device into a variable as well:
use the variable %lockeddev%
in a macro to lock the binding to the actual selected device
LOCKSELECTEDTRACKMACRO
This is an extension of the UA described above.
You quite likely want to use these variables to BIND a controller to that track. With this UA it is no problem.
just pass on the name of the macro without the $ s:
[] LOCKSELECTEDTRACKMACRO macroname
to apply any action macro with the currently selected track and don’t worry if you then select another track after.