Zack Lovatt

Behance Bitbucket Dribbble LinkedIn Skype Vimeo
August 3, 2015

Preset: Point on a Circle

Posted In: downloads, expressions, presets

In a throwback to Points Along A Line from several years back, here’s a quick expression for ya– “Point on a Circle.” Straightforward, yeah? Yeah.

offsetAmount = [0, 0];
circleRadius = 100;
targetAngle = 0;

x = offsetAmount[0] + circleRadius * Math.cos(targetAngle);
y = offsetAmount[1] + circleRadius * Math.sin(targetAngle);
[x, y]

The first three lines are just setting up the circle & any offset; how big is it, and where on the circle do we want the point to be? In the preset, these will be linked to controllers so you can pick a layer to orbit around, and easily control the angle & radius.

This is super simple– preset download below (CS6+).
Tagged: ,
0 Comments

Would you like to share your thoughts?

Leave a Reply