Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions expression controle

  • expression controle

    Posted by Peter on November 3, 2005 at 2:16 pm

    Hi there,

    i’m linking the scale property with the pickwickwheel to an Audioamplitude,so that the layer scales with the beat.
    because I wanted it to scale stronger I added *30
    so have this expression written:

    temp = thisComp.layer(“Audioamplitude”).effect(“Linker Kanal”)(“Schieberegler”);
    [temp, temp]*30

    The question:
    How can I manage, that it doesn’t scale to zero when there’s no beat,
    how can i limitize the downscale?

    thx
    Peter

    Dan Ebberts
    replied 20 years, 6 months ago
    2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    November 3, 2005 at 4:03 pm

    The easiest way is probably just to add an offset:

    temp = thisComp.layer(“Audioamplitude”).effect(“Linker Kanal”)(“Schieberegler”);
    [temp, temp]*30 + [25,25]

    Where 25 would be the minimum. You’ll have to adjust your multiplier (30) to end up with the same maximum value.

    Dan

  • Peter

    November 3, 2005 at 7:34 pm

    thanx, works totally fine for me.
    and can i smooth the movements, easy ease like?

    peter

  • Dan Ebberts

    November 3, 2005 at 8:33 pm

    You could try the smooth() method like this:

    temp = thisComp.layer(“Audioamplitude”).effect(“Linker Kanal”)(“Schieberegler”).smooth(.2,5,time);
    [temp, temp]*30 + [25,25]

    Dan

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