I lose the track selection when automating a parameter

Hi

Have a look a this:

I made a macro and it work for me.