Hello. Is there a way change the fill color with expression based on a number? Let’s say you want -50 be blue, 0 to be white and 50 to be orange and I want to link them to a slider or something so I will be able to change the fill based on the number I put in.Thanks.
I'm not sure i entirely understand your question, but I think you're looking for the expression that I have on the color fill which links the color to the slider number here: var slider = effect("Country Slider")("Slider"); var c1 = thisComp.layer("Color Control").effect("Start color")("Color"); var c2 = thisComp.layer("Color Control").effect("Mid color")("Color"); var c3 = thisComp.layer("Color Control").effect("End color")("Color"); if (slider < 100000){ ease(slider,0,100000,c1,c2); } else { ease(slider,100000,1000000,c2,c3); }
Hi! It's used in this story for the Washington Post. www.washingtonpost.com/video/world/how-europe-tamed-its-second-coronavirus-surge-and-why-the-continent-already-fears-the-third/2020/12/11/7ccb5ada-6e5f-4466-a898-85b23938a922_video.html
This is great, thank you!
Hello. Is there a way change the fill color with expression based on a number? Let’s say you want -50 be blue, 0 to be white and 50 to be orange and I want to link them to a slider or something so I will be able to change the fill based on the number I put in.Thanks.
I'm not sure i entirely understand your question, but I think you're looking for the expression that I have on the color fill which links the color to the slider number here:
var slider = effect("Country Slider")("Slider");
var c1 = thisComp.layer("Color Control").effect("Start color")("Color");
var c2 = thisComp.layer("Color Control").effect("Mid color")("Color");
var c3 = thisComp.layer("Color Control").effect("End color")("Color");
if (slider < 100000){
ease(slider,0,100000,c1,c2);
} else {
ease(slider,100000,1000000,c2,c3);
}
Can you please give a complete tutorial to produce such a map animation?
The map was created in Geolayers 3 plugin. You could also use any vector shapes, if you have a vector map just use that.
Where did you use this map?
Hi! It's used in this story for the Washington Post. www.washingtonpost.com/video/world/how-europe-tamed-its-second-coronavirus-surge-and-why-the-continent-already-fears-the-third/2020/12/11/7ccb5ada-6e5f-4466-a898-85b23938a922_video.html