Latitude/Longitude Slider


Hello folks!! Sorry I’ve been so remiss in posting something here. It has been CRAAAAZZY busy in the last month since I went freelance, which is a good thing.

Anyway, here’s a cool little expression I worked up that creates a Latitude or Longitude read-out based on a slider value. It’s more for effect than anything.. don’t expect any amazing accuracy with this.

If you just want the script, it’s pasted below.
Or you can download the project here. (Requires AE7).


v = effect(“Slider Control”)(“Slider”)/100;
n = Math.sin(v)*360;

degrees = Math.floor(n);
min = Math.floor((n%1)*60);
if (min<10) {min = “0″ + min};
if (degrees
<100) {degrees = “0″ + degrees};
if (degrees
<10) {degrees = “0″ + degrees};

“” + degrees + “ &deg ” + min +” min “;

Share

You must be logged in to post a comment.

© © 2011 Toolfarm
CyberChimps WordPress Themes

AE Freemart is Stephen Fry proof thanks to caching by WP Super Cache