Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions simple syntax question

  • simple syntax question

    Posted by Jonas Espinoza on March 27, 2008 at 7:16 pm

    so i am becoming semi-friendly with arrays, and slowly better at syntax

    right now i am just perplexed on something simple

    i am not sure how the syntax works when adding say a wiggle on top of the x variable. do i put it below in the array, or is there a way to tack it on to the x = line. Ive played around for a while now, and im just not getting it.

    x= comp(“master”).layer(“Controller”).effect(“width”)(“Slider”)*2*(index-1);
    y= position [1];

    [x, y]

    Dan Ebberts replied 18 years, 3 months ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    March 27, 2008 at 11:50 pm

    You’ll need to do something like this:

    freq = 2;
    amp = 25;
    x= comp(“master”).layer(“Controller”).effect(“width”)(“Slider”)*2*(index-1);
    y= position [1];

    w = wiggle(freq, amp) – value;

    [x, y] + [w[0],0]

    Dan

  • Jonas Espinoza

    March 28, 2008 at 2:26 am

    ah
    makes perfect sense, learning the way to speak this script is the key

    thanks so much

    you are such a HUGELY generous contributer to this community

  • Jonas Espinoza

    March 28, 2008 at 4:36 pm


    w = wiggle(freq, amp) – value;

    [x, y] + [w[0],0] ”

    i’m not clear about the “- value” part

  • Dan Ebberts

    March 28, 2008 at 4:56 pm

    The result from wiggle() includes the value of the property itself. To isolate just the wiggle part you need to subtact out the pre-expression value. Hope that makes sense. 🙂

    Dan

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