ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Expression Help

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Randall Bennett
Expression Help
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


Return to posts index

vitaminman
Re: Expression Help
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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]