-
Linking separate layers & properties – using expression and slider control
Hey guys,
Having trouble simplifying a SAT NAV (GPS) animation for multiple map deliveries.
Ive drawn a shape layer path and used a trim path to animate a dashed line.
Ive used the same path to create position data for a car that goes round the map and have the animations matching all fine.
My problem comes from trying to sync this animation to some VO taking us through the drive – So far ive pre composed my animation and used time-remapping to sync the car with the VO (all well and good but this requires a fair few key frames and is adding an annoying amount of time to what is looking to be around 50 different map runs)
I need a way to link the position of the car (an AI file – but could be PNG//whatever) to the end of my trim path and control the speed it reaches its destination with a nice easy to use slider control
What im using at the moment makes the line complete the enitre journey at .o1% and the car finishes around 27% – so i cant be too far off right – right?
Its driving me crazy
(ba dum chhhhhh)Any help would be greatly appreciated
Theo Williams
ctrl = thisComp.layer("ControlNull");
slider = ctrl.effect("Slider Control")("Slider");
n = Math.max(1,Math.min(slider,numKeys));
valueAtTime(key(Math.floor(n)).time)
