Expressions/Scripts/Presets

Moderators: Disciple, zlovatt

 
User avatar
mushanga75
Topic Author
Posts: 1
Joined: Thu Feb 02, 2017 4:57 am

Animate a car dashboard with an expression

Thu Feb 02, 2017 7:45 am

Hello everybody, 

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 :


http://imageshack.com/f/pn2YURKHp

http://imageshack.com/f/powx0vTyp

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!"

Who is online

Users browsing this forum: No registered users and 2 guests