ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

# Dan Ebberts Bezier Curve

FAQ   •   VIEW ALL
 Dan Ebberts Bezier Curve on Apr 3, 2012 at 8:14:43 pm

Is it possible to take Dan Ebberts Bezier Curve and have the path be a perfect circle? and also orient the shape layer to the circle?

right now i have it on a slider with 4 nulls.

N1 = thisComp.layer("Null 1");
N2 = thisComp.layer("Null 2");
N3 = thisComp.layer("Null 3");
N4 = thisComp.layer("Null 4");

p0 = N1.position;
p1 = N2.toWorld(N2.anchorPoint);
p2 = N3.toWorld(N3.anchorPoint);
p3 = N4.position;

c = 3*(p1 - p0);
b = 3*(p2 - p1) - c;
a = p3 - p0 - c - b;

t0 = index/(thisComp.numLayers - 3);
s = N1.effect("Slider Control").param("Slider");
if(s < 0){
s += 1;
t = t0*s;
}else{
t = s + t0 - s*t0;
}
((a*t +b )*t + c)*t + p0

any help would be great!

 Re: Dan Ebberts Bezier Curveon Apr 3, 2012 at 9:42:15 pm

Hi,

If I understand what you are looking for is a way to get a shape layer follow a perfect circular path and auto orient ?

I have uploaded a project that may help.

3942_orientobjectaroundcirclularpath.aep.zip

Hope this is of use.

Declan Smith