Hi, once i tried to control color with rules, and i did it. LIke you have parameter with colors and you can change it, it was controled with a rule.
Or you can go with a macro, you have that option too.
like to make some palete, and to have multiple selection, then check for parent if there not, change color, or smthg like that.
I hope i helped