Here are some macros.
PLE Preset - Set Color1 to Selected Audio Tracks
Property, Property is set, Event is selected, And
Container Type is, Equal, Track, And
Media Type is, Equal, Audio
Set Color, Set to fixed value, Color 1
Transform
Macro - Add Audio Track and Set Color1
Add Track - Audio
Process Project Logical Editor - Set Color1 to Selected Audio Tracks
(If you add multiple tracks, Color1 is applied to only last added track)
Macro - Set MyColors to Selected Tracks
Process Project Logical Editor - Set Color1 to Selected Audio Tracks
Process Project Logical Editor - Set Color2 to Selected MIDI Tracks
Process Project Logical Editor - Set Color3 to Selected Group Tracks
Process Project Logical Editor - Set Color4 to Selected FX Tracks
…
Cubase Macro - Apply different colors at a time.gif
Both MIDI and Instrument Tracks are recognized as MIDI Tracks.
These macros need PLE window closed.