[null, {"document_url": "http://aenhancers.com/viewtopic.php?f=6&t=3070&sid=00286eb2a7f247e019b47c61c38268c9", "unformatted_src": "https://culturashojo.files.wordpress.com/2011/09/myjeeg.jpg", "src": "https://culturashojo.files.wordpress.com/2011/09/myjeeg.jpg", "formatted_filename": "myjeeg", "alt_text": "User avatar", "rendered_width": 100, "rendered_height": 100}, null]
Animate a car dashboard with an expression

Moderators: Disciple, zlovatt
 Joined: February 2nd, 2017, 4:57 am

February 2nd, 2017, 7:45 am


im working on a AE project to emulate this video :

Now I have to animate the composition.
I created a Counter for Speedometer and Rev Counter and i parented those Counters with respective needles but I'm not able to create a correspondence bewteen the Counter's zero and the Needle's zero.
This is the expression I used for the Counter :

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Roboto; color: #323333} span.s1 {font-kerning: none}
beginCount =thisComp.layer("Counter").effect("Slider Control")("Slider");
stopCount = thisComp.layer("Counter").effect("Slider Control")("Slider");
beginTime = 0; // start counting at time = 0
countDur = 5; // count for 5 seconds
Math.round(linear(time,beginTime,beginTime + countDur,beginCount,stopCount))

and this is how it appears my workflow now :



I already parented the needle with the Counter but the rotation degree of the needle doesn't correspond to the zero of the Counter.... what I need in the end is to create the correspondence between Counter and the speedometer nicks : when needle is on the 2 the Counter must shows 2000 and so on...

Hope it's clear what I mean

Is it possible?
- Mushanga75 -

"The more you read, the more you see!"

Return to “Expression Discussion”



Adobe API Documentation
