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

Animate color control

New Here ,
May 15, 2022 May 15, 2022

Hello, I have a problem with color control animation - the null object that controls the fill of multiple shapes is working to change them all at once, but when I try to animate it, it's not changing them, please help

TOPICS
Error or problem , Expressions , How to
1.9K
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

Community Expert , May 16, 2022 May 16, 2022

Select the precomp layer, then Effect > Color Correction > Change to Color, set the From color and animate the To color, maybe?

Translate
Community Expert ,
May 15, 2022 May 15, 2022

We need to see your expressions to figure out what went wrong. A simple pickwhip from one color to an Expression Controls/Color Controller should do the trick. All you should need to do is set keyframes for the Color Controller.

RickGerard_0-1652673155208.png

I have included a movie and a project file.

 

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
New Here ,
May 15, 2022 May 15, 2022

@Rick Gerard thank you for your reply, it's not working for me, probably because I'm trying to animate a color of a looped precomposition. This is how I looped a text and a shape below, how do I animate the color now in the main comp?

 

https://www.youtube.com/watch?v=r4R47Ihv_r4

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
New Here ,
May 16, 2022 May 16, 2022

If that's the case you should reference the pre-comp in your expression. You can try using:

 

comp("composition where your color control is").layer("color control layer").effect("Color Control Effect").color

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
New Here ,
May 16, 2022 May 16, 2022

@Nebojsa Savicic that would be the expression I got after linking it to the control:
comp("composition where your color control is").layer("color control layer").effect("Color Control")("Color")


to be exact. 
I tried changing the last part like you suggested but with no result. In other thread I got a reply that since it's looped the timing should be adjusted and the code should be like:

 

C = comp("composition where your color control is");
ctrl = C.layer("color control layer").effect("Color Control")("Color");
L = C.layer(thisComp.name);
ctrl.valueAtTime(time + L.startTime)

 

But that didn't work either 😕 I can't believe it's that hard to simply change a color of a looped element in AE

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
New Here ,
May 16, 2022 May 16, 2022

I'm not sure i understand. Would you be able to share a video of your workflow? That way i can see what's happening and troubleshoot.

 

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
New Here ,
May 16, 2022 May 16, 2022

This is showing what the problem is, the rest is done just lke in the YT video

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 ,
May 16, 2022 May 16, 2022

You will need an expression that takes the loop into account. I don't have time to do that this morning. I think Dan Ebberts proposed a solution in another thread. Was that your thread?

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
New Here ,
May 16, 2022 May 16, 2022

Yes, I posted that solution here too:

C = comp("composition where your color control is");
ctrl = C.layer("color control layer").effect("Color Control")("Color");
L = C.layer(thisComp.name);
ctrl.valueAtTime(time + L.startTime)

But it did not work unfortunately 😕 I replaced comp("composition where your color control is").layer("color control layer").effect("Color Control")("Color") with that and tried to animate but still no animation

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 ,
May 16, 2022 May 16, 2022

My guess is that your animation happens outside the time range which is looped via the precomp time remapping. So the loop just shows the first part over and over, and never gets to the color change.

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
New Here ,
May 16, 2022 May 16, 2022

@Dan Ebberts yes, I think so but how can I make it work? Is is really impossible to change color of a looped animation in 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
Community Expert ,
May 16, 2022 May 16, 2022

I guess you could apply color change effects to the precomp layer in the main comp, which you could animate independently of the time remapping.

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
New Here ,
May 16, 2022 May 16, 2022

That would be perfect, but how to do that? For a pre-comp layer I can only see the regular Transform properties to animate?

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 ,
May 16, 2022 May 16, 2022

Select the precomp layer, then Effect > Color Correction > Change to Color, set the From color and animate the To color, maybe?

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
New Here ,
May 16, 2022 May 16, 2022
LATEST

Thank you so much, I forgot to mention that I'm missing basic knowledge, that's all I tried to do, got it!

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