Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Restrict Color Fill to area

  • Restrict Color Fill to area

    Posted by Amanda Russell on July 27, 2023 at 1:58 pm

    I have got expressions in place to take color from a style guide and then switch to a color picker for custom needs outside the guide, but I’ve run into an issue. I have a top text layer color branded and a subtext layer that stays black. These text layers need to be reused throughout, but the color of the branded layer may need to change to fit in the scene. However, if I set this up so the text auto updates throughout the video per custom info, then color will also update in all of them bc that color is being shifted inside the comp. I would like to link the color to the outside comp layer, so I can control the color from the scene it is in (instead of inside the text comp), but if I apply a fill, it colors the whole comp so the bottom text layer isn’t black. If you apply a mask it fills the whole mask as a solid, rather than restricting the region of the fill to the masked text, leaving the other text unaffected.

    So ultimately that is my question: Is there a way, without adding layers, to apply a color fill to only part of a composition from outside the comp? My guess it probably not, but figured it was worth asking.

    Amanda Russell replied 3 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Filip Vandueren

    July 27, 2023 at 8:20 pm

    Hi Amanda,

    Many ways to do this, most are not really expression related.

    You could do a fill, followed by a Cc blend or set matte to reinstate the original text alpha while keeping the color.

    Or you could use a tint effect, white text black text, and then re-map white to your color control.

    Or use any effect that affects the color of the layer (for example again tint but with black and white set to the same color), and limit the location where the effect is applied using an effect mask.

    Or. You could set the fill/stroke color of the text using a text animator and use a range to only have that active in certain lines.

  • Amanda Russell

    July 27, 2023 at 11:42 pm

    Thank you so much for taking the time. I did figure out a fix with one of my colleagues that will work. Added+animated a mask for the areas of the comp i wanted to affect over time (leaving the default settings to the mask other than the path animation) plus adding a fill to the comp layer and, in the timeline, twirling down Effects > Fill > Compositing Options, tapping the + to add a compositing Reference and making sure the reference is set to Mask 1. That way, the mask doesn’t actually mask all the visuals, but applies only to compositing the Fill effect layer to the areas I’ve designated.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy