-
question for Mylenium about “Animating Maps with Expressions” tut
Very nice tutorial!
I wanted to modify it to be in 3d though…
Instead of having the lines draw on to reach the target point, i want the target point to animate as well. So the line will start at the source point, but the target point also travels, and with it the line…does this make sense???
Its like its scanning an area and when it hits a spot it lights up.When i convert all layers to 3d everything works except the rotation…
i tried modifying this:
delta=position-thisComp.layer(index+1).position;
angle=Math.atan2(delta[1], delta[0]);
angle=radiansToDegrees(angle)+180;[angle]
to apply to x & y rotation and i also tried modifying it for orientation but i cant get the line to lock to the target…i somehow mess up the math…
Do you know how to get the rotation to lock to the line in 3d rotation??
Many thanks!
gobomus