Good question.
It's possible to set an active take to a specified color, as above.
But is the opposite possible: to set a take of a specified color to be the active one?
IOW: Make active all takes of custom color n.
EDIT: Actually, I misread your question and answered something else altogether.