Position Curve script

Moderators: Disciple, zlovatt

Post Reply
blindchild
Posts: 14
Joined: February 8th, 2009, 2:19 pm

Hi Guys,

I am having a bit of trouble writing an expression...in fact I am not getting anywhere.

I have a 3D solid which is 100x100 within a 1920x1080 comp. It is labelled as SQ_01....and then inside I have the following expression:

Code: Select all

/*VALUES*/
num=thisLayer.name.substr(-2);
curve_amount=100;
curve_decay=0.1;

x=(num-1)*(curve_amount*curve_decay);

y=0;

z=(num-1)*thisComp.layer("CONTROLS").effect("d_points")("Slider");

[x,y,z]
What I am trying to make it so that when I duplicate the layer that it moves back in z-space and also off to the right in the x. But I want it to gradually move off the right and not linearly, so it has a slight curve to it which I can also control. At the moment I have no idea how to get the position to have a curve to it....

Any help would be greatly appreciated...

Thanks

Ross
Post Reply