Adobe After Effects Forum
Expression Help
Expression Help
by Randall Bennett on Aug 13, 2005 at 10:59:42 pm

So i'm using an expression that uses sin, but I only want the positive numbers of sin. Any ideas on how to fix that?

Thanks,
RB


Re: Expression Help
by vitaminman on Aug 14, 2005 at 12:28:36 am

Hey,

I think you can with a Math.abs function:

x=Math.sin(time);
Math.abs(x);

This takes a number and finds the absolute value of it.

Take care,

Nick





© CreativeCOW.net