Expected behavior: if the currently selected track is a MIDI track, run the macro.
However, it appears the PLE always runs the macro afterwards, regardless of what’s happening in the conditions section of the PLE. Setting the Function to ‘Select’ or ‘Transform’ makes no difference.
This was simply brain flatulence. I’ll leave it posted for context, or in case a court of law ever needs proof that I am somewhat less than perfect. (I know, and you know, but the judge don’t know.)
This particular one would delete the track.
The point is that an if-then can work if the function is available in the PLE.
I tested it with Delete, but I presume it would work with any action PLE can do. (as opposed to what a macro can do)
My aim is to have a key command that only does something when the currently selected track is a MIDI track.
In my particular case the key command is being sent to Cubase from a larger Autohotkey macro script. But I won’t bother you with all that :-).
Steve, your suggestion seems to simply proof that the PLE filter conditions can only apply to PLE actions, and not to whether or not the subsequent macro is launched. Correct? Or am I missing something?