Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: HomeForumBasicsExpressionsTutorialsPodcastsMotion GraphicsTrainingCinema 4DFAQ

Waveforms

Cow Forums : Adobe After Effects Expressions

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>
Waveforms
by Sam Vargas on Feb 21, 2007 at 10:08:06 am

Hi,
I found that wiggle always gives me random waveform, even with octaves=1. What if I want the value to follow a simple sine or square waveform in all the comp, and I don't want to go over and make hundreds of keyframes ? Are there a simple expression to make simple waveforms like wiggle but not random ?

Respond to this post   •   Return to posts index

Re: Waveforms
by Mylenium on Feb 21, 2007 at 10:43:29 am

Octaves do not refer to the number of waveforms, but to the number of overlapping waveform groups (at least 3 per group), so it never would work. To get a simple sine wave, use the according function:

Math.sin(time)*multiplier

Mylenium

[Pour Myl

Respond to this post   •   Return to posts index

Re: Waveforms
by Sam Vargas on Feb 21, 2007 at 10:50:56 am

Thanks. To be honest I tried the sin() function, but it wasn't work. But now I found out that other functions need the ...(?)... so that math prefix (i'm not a programmer, i don't know what that's name :) ) I assume that's apply for other java functions as well, if I get the function not declared or similar error message. thank you.

Respond to this post   •   Return to posts index


Re: Waveforms
by Mylenium on Feb 21, 2007 at 7:07:59 pm

Math.() is a class in Java. A class by itself is simply a specially defined sub-set of the language that are used a lot can be replaced or expanded with your own classes. In case of math that makes sense - nobody wants to calculate pi and radians manually. Modifying the math class could also be used to control how precise computations are for instance. However, with AE that's a very theoretical scenario, as it is no full JavaScript/ ECMA script environment with all the bells and whistles. ;o)

Mylenium

[Pour Myl

Respond to this post   •   Return to posts index

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


FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]