-
Color changes on velocity
I have a test i’m doing that has an object moving around, the faster it travels the color changes. Here’s the example – https://www.dropbox.com/s/r98grbtnd1uawt8/V_test5.mp4
Expression for velocity.
factor =5;
Math.abs(thisComp.layer(“G”).position.velocity[0])/factor;I have two problems with the current animation.
1. The object that samples the colors to the left over shoots in height sampling black color. This object moves higher in height the faster the dot moves. How can i clamp the vales so that the object doesn’t go past a certain height value?
2. Notice how the colors on the band of particles do not fade. Instead it’s solid from one color to the next. This is the result of the object moving way too quickly from fast to slow. Is there a way to control the speed in which the object moves? For example, how can the values be “smoothed” so that as the object samples the color it’s slow enough to gradient correctly on the band of particles.
I hope i explained what i’m asking for. Any questions or suggestions is much appreciated.
Thanks!
Alain