Skip to main content
nikowonde
Participant
September 4, 2017
Question

Change color with slider that is controlled by another slider...

  • September 4, 2017
  • 1 reply
  • 5146 views

So I have this problem in my hand that I would like to change color from this -> 89a30af1a3.png

to that -> 8b52f6d7c5.png with slider -> 7d783bb405.png that is controlled by another slider -> 99bc614d02.png....

If you didn't understand what I mean, I'll try to explain it better here. First of all I have this glow color that I want to be Orange and then change it to Blue when slider reaches certain amount (lets say that when slider = 0.00 Glow Color is Orange, but when slider = 100 color would be Blue). Then that slider value would be controlled via keyframes that are in the second slider "Output 3". Is this possible to do in any way, if so how?

Please feel free to ask questions if needed more details or more explanation. Thanks in advance.

This topic has been closed for replies.

1 reply

Mylenium
Legend
September 4, 2017

You will have to add the interpolation to each color component separately using linear() interpolators such as

R=linear(slider,0,100,0,255);

G=linear(slider,0,100,0,255);

B=linear(slider,0,100,0,255);

[R,G,B,1]

Otherwise it doesn't really matter how you chain things across comps. the real trick is really to wire the components. that being said, it will probably still look awful, since there may be percentages that result in muddy colors, so consider using conventional color correction effects instead of expressions.

Mylenium

nikowonde
nikowondeAuthor
Participant
September 4, 2017

I thank you for your answer, but I'm sorry, unfortunately I didn't understand what you mean.

I used pickwhip from the color to select that slider and it gives me expression of

temp = effect("Slider Control")("Slider");

[temp, temp, temp, temp]

with this it makes color black when slider is at 0.00, but if it's like 0.01 it changes color to white.

(I'm quite bad with these more advanced expressions)

Kevin-Monahan
Community Manager
Community Manager
September 7, 2017

Still having trouble with this NikoWande? Let us know if you need more assistance.

Thanks,
Kevin

Kevin Monahan - Sr. Community & Engagement Strategist – Pro Video and Audio