Skip to content

Instantly share code, notes, and snippets.

@animoplex
Created February 28, 2019 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save animoplex/e7c62fbfe35ee5345680b235b5b428ea to your computer and use it in GitHub Desktop.
Save animoplex/e7c62fbfe35ee5345680b235b5b428ea to your computer and use it in GitHub Desktop.
Z Offset Using Radius - After Effects Expression by Animoplex
// Z Offset Using Radius - Created by Animoplex: www.animoplex.com
// First line is the source of the offset, apply to position value on a grid of shapes
tar = thisComp.layer("TARGET").toWorld([0,0,0]);
rad = 100; // radius
mov = 500; // pixels of movement
dis = length(tar, toWorld([0,0,0]));
end = [value[0], value[1], value[2] + mov];
ease(dis, 0, rad, end, value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment