I am creating a motion graphics template for the company I work for. I would like to make it relatively easy for a less experienced user to quickly change the color of certain shape layers across several different comps in the template. Because I am adhering to our brand standards, this will be limited to a choice of four specific colors.
I set up a null in a settings comp with four checkbox effects—one for each color—and wrote an expression for each so that they function like radio buttons. This way, only one color option is selected at a time. That works fine. This is what the expressions for that look like.
Then, I created a shape in the same comp so the user has an easy visual reference of which color is selected and also so I could test the functionality. The expression I used for the Color property is below.
The problem I am having is that the swatch next to the Color property will change to the color of the selected checkbox but the shape layer only appears as the blue289 color no matter which checkbox is selected. Screenshot of it in action. And, if I change ANYTHING about the shape layer (for example, turning on motion blur, changing its position, etc.) whatever checkbox is selected deselects and the blue289 checkbox is selected.
Any ideas what I am doing wrong and how I can make this work? I have some fallback solutions (including "change the colors your own damn self") for how to allow the user to change the color but I really want to try and get this to work before going that route. I think this solution is elegant...if it would work.
I think all radio button simulations using checkbox expressions are doomed to failure. Essentially, what you have is an expression result dependent on the result of another expression which is dependent on the result of the first expression, creating an unstable loop. My advice (though less elegant) would be to use a slider.