Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
AE Expression for controlling a rotation
//
// Rotate Controller - By Ralph Crisostomo (16NOV2016)
// AE Expression
//
Radius = effect("Radius")("Slider");
Speed = effect("Speed")("Slider");
Multiplier = effect("Multiplier")("Slider");
X = effect("X")("Slider");
Y = effect("Y")("Slider");
Z = effect("Z")("Slider");
_position = [X,Y,Z];
_speed = time * Speed;
_x = Radius * Math.cos(degreesToRadians(_speed));
_y = _speed/ Multiplier;
_z = Radius * Math.sin(degreesToRadians(_speed));
add(_position, [_x,-_y,_z]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.