Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: ForumAE BasicsAE ExpressionsTutorialsArticlesPodcastsMotion GraphicsTrainingCinema 4D

Help with simple rotation expression

Cow Forums : Adobe After Effects Expressions
cow
Help with simple rotation expression
by Dave Chenell on May 13, 2008 at 7:14:41 pm

Hey guys,

I'm looking to make a mouse cursor move back and forth (rotating) as it moves as if to look like its swimming. I have motion paths laid out but i am working on the rotation expression.

I don't think I would use wiggle because I want the rotation to be stable like tick-tock and not random if you know what i mean. I would also want a way to increase the speed of ticks per second I suppose. I'm sure this is not too complicated I'm just a newbie at expressions.

This is for a project I'm working on that has a fast approaching deadline so if anyone could help out in the least bit to point me in the right direction that would be amazing and I would be very greatful. Thanks

Thank goodness for the Cow,
Dave

Respond to this post     Return to posts index

cow
Re: Help with simple rotation expression
by Dan Ebberts on May 13, 2008 at 9:40:14 pm

I'd start with a sine wave and see if that gets you in the vicinity:

freq = 1; // wiggles per second
amp = 30; // amplitude
value + amp*Math.sin(freq*time*Math.PI*2)


Dan



Respond to this post     Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINEDVDsBOOKSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]