Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions soundkeys x asix

  • Posted by Gon Perdigao on June 5, 2023 at 12:49 pm

    I am trying to parent x axis to the soundkey info.

    I manage to do it, with this code [value[0],value[1]] – thisComp.layer(“Soundkeys_02”).effect(“Sound Keys”)(“Output 1”)

    but I want the resting position to be the same and just when there is a change the layer moves.

    With the code I have at the moment the layer is moving from its original position.

    How can I fix it?

    Thank you

    Dan Ebberts replied 1 year, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Gon Perdigao

    June 5, 2023 at 3:13 pm

    I have thought as well to have the code like this x = [value[0],value[1]] + thisComp.layer(“Soundkeys_Center”).effect(“Sound Keys”)(“Output 1”);

    x – transform.position[0]

    My idea with this code would have been adding the position of soundkeys to the x-axis and then subtracting the original x-axis value.

    But again no luck.

    If anyone can help out I would be really appreciated 🙂

  • Dan Ebberts

    June 5, 2023 at 7:08 pm

    Probably some variation of this, linked to the SoundKeys output:

    http://www.motionscript.com/design-guide/audio-trigger.html

    substituting an x position animation for the scale wobble. Something like this maybe:

    amp = 100;
    rampTime = .25;
    fallTime = .1;
    x = t < rampTime ? easeOut(t,0,rampTime,0,amp) : linear(t - rampTime,0,fallTime,amp,0);
    value + [x,0]

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