£2+

Text Effector rig in After Effects

I want this!

Text Effector rig in After Effects

£2+

Please check out my YouTube video here:


https://youtu.be/m4-z68S8q9Y


Thanks for watching. It’ll really help me if you can like and subscribe to my channel. 


Here’s the timestamp of the video:


0:33 Keyframe animation

4:07 Expressions


To download the After Effects file for free, please visit:



Expressions:


// 1. Placing the anchor point to the left-middle point:

var rect = thisLayer.sourceRectAtTime(); 

[rect.left, rect.top + rect.height / 2];


// 2. Rotation of the text layer:

dx = transform.position[0]-thisComp.layer("Null 1").transform.position[0];

dy = transform.position[1]-thisComp.layer("Null 1").transform.position[1] ;

distance = Math.sqrt(dx*dx+dy*dy);

angle = Math.atan2(dy,dx);

angleInDegree = radiansToDegrees(angle);

angleInDegree;


This is how to get the radians from the x, and y value:

https://en.wikipedia.org/wiki/Atan2


// 3. Getting the X position on the circular path:


var x = transform.xPosition;

var y = transform.yPosition;

var nullX = thisComp.layer("Null 1").transform.position[0];

var nullY = thisComp.layer("Null 1").transform.position[1];

var yDistance = Math.abs(y - nullY);


var newX = x; // Create a new variable for the new x position


if(y < nullY && yDistance < 50){

    newX = ease(yDistance, 50, 0, x*1.1, x); // Inversely map yDistance to the new x position

} if (y>nullY && yDistance<50){

newX = ease(yDistance,0,50,x*1.1,x);

}


newX;


I used these two resources to help me:

https://helpx.adobe.com/uk/after-effects/using/expression-examples.html


https://www.varsitytutors.com/hotmath/hotmath_help/topics/equation-of-a-circle


£
I want this!
8 sales
Size
1.52 MB
Powered by