Forum Replies Created

Page 1011 of 1081
  • Depends on what you’re doing. A lot of times you can convert the expression to a equation based on time. Sometimes you have to have your expression “recreate” the past by walking through the comp frame by frame. The are other, more obscure techniques that can be helpful in rare situations.

    If all you want to do is increment a value on each frame you could do it like this:

    myVar = 10; //starting value
    f = Math.round(time/thisComp.frameDuration); //frame number
    myVar += f;

    Dan

  • Dan Ebberts

    August 11, 2006 at 4:39 pm in reply to: bounce in (by expression?)

    Sure, that would be helpful. Especially if it’s not the latest version.

    Dan

  • Dan Ebberts

    August 11, 2006 at 4:39 pm in reply to: bounce in (by expression?)

    Sure, that would be helpful. Especially if it’s not the latest version.

    Dan

  • Dan Ebberts

    August 11, 2006 at 4:07 pm in reply to: Opacity expreccion malarky

    Something like this maybe:

    holdTime = 2;

    minFade = .1;
    maxFade = .5

    fade = Math.min(Math.max(minFade,holdTime*.1),maxFade);

    linear(time,holdTime,holdTime + fade,100,0);

    Dan

  • Dan Ebberts

    August 11, 2006 at 4:07 pm in reply to: Opacity expreccion malarky

    Something like this maybe:

    holdTime = 2;

    minFade = .1;
    maxFade = .5

    fade = Math.min(Math.max(minFade,holdTime*.1),maxFade);

    linear(time,holdTime,holdTime + fade,100,0);

    Dan

  • Dan Ebberts

    August 10, 2006 at 4:10 pm in reply to: bounce in (by expression?)

    It depends on which version of AE you’re running. You can’t access the comment in the newer versions but you used to be able to with marker.value. Hopefully this very useful feature will be restored in a future version.

    Dan

  • Dan Ebberts

    August 10, 2006 at 4:10 pm in reply to: bounce in (by expression?)

    It depends on which version of AE you’re running. You can’t access the comment in the newer versions but you used to be able to with marker.value. Hopefully this very useful feature will be restored in a future version.

    Dan

  • Dan Ebberts

    August 10, 2006 at 3:11 pm in reply to: bounce in (by expression?)

    This should do it:

    max_dev=20; // max deviation in pixels
    spd=35; //speed of oscillation
    decay=10; //how fast it slows down
    t = time – in_point;
    s = max_dev*Math.sin(spd*(t))/Math.exp(decay*t);
    value + [s,s]

    Dan

  • Dan Ebberts

    August 10, 2006 at 3:11 pm in reply to: bounce in (by expression?)

    This should do it:

    max_dev=20; // max deviation in pixels
    spd=35; //speed of oscillation
    decay=10; //how fast it slows down
    t = time – in_point;
    s = max_dev*Math.sin(spd*(t))/Math.exp(decay*t);
    value + [s,s]

    Dan

  • Dan Ebberts

    July 26, 2006 at 12:54 pm in reply to: Advanced Parent/Child Properties Question

    You need to use the Layer Space Transforms.

    It would look like this:

    C = thisComp.layer(“child”);
    childPosition = C.toWorld(C.anchorPoint);

    There’s also a transform to move the child’s position into comp (view) space that’s the same as above except you use “toComp()”.

    Dan

Page 1011 of 1081

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