Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Animate between two Expression Color Control colors

Explorer ,
Jun 06, 2023 Jun 06, 2023

Hey!
I have a video with some solid shapes, that animate from one color to another and back a few times. Currently I've simply used the "fill" effects and animated the color parameter. I now want to get some extra control over that by specifying the two fill colors using two "Color Control" effects. 

How would I implement that? Especially the smooth fade between the colors.

Thanks for your input!

TOPICS
Expressions , Scripting
930
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Jun 06, 2023 Jun 06, 2023

...didn't research properly...

Solution (from Andrei Popa on CreativeCow): 

(put this expression on the "fill" effect)
Col=thisComp.layer("BG").effect("Slider Control")("Slider");
color1=thisComp.layer("SETTINGS").effect("Color 1")("Color");
color2=thisComp.layer("SETTINGS").effect("Color 2")("Color");
linear (Col,0,100,color1,color2)

Translate
Explorer ,
Jun 06, 2023 Jun 06, 2023

...didn't research properly...

Solution (from Andrei Popa on CreativeCow): 

(put this expression on the "fill" effect)
Col=thisComp.layer("BG").effect("Slider Control")("Slider");
color1=thisComp.layer("SETTINGS").effect("Color 1")("Color");
color2=thisComp.layer("SETTINGS").effect("Color 2")("Color");
linear (Col,0,100,color1,color2)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 06, 2023 Jun 06, 2023
LATEST

Good that you already found a solution!

If you have iExpressions, it also comes with a linear color link expression, which does not require you to touch any code at all:

 

 

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines