Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by Sam Vargas on February 21, 2007 at 10:08 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 ?

    Mylenium replied 19 years, 2 months ago 2 Members · 3 Replies
  • 3 Replies
  • Mylenium

    February 21, 2007 at 10:43 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

  • Sam Vargas

    February 21, 2007 at 10:50 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.

  • Mylenium

    February 21, 2007 at 7:07 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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy