Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Y position expression with SoundKeys

  • Y position expression with SoundKeys

    Posted by Joanpablo Torres on December 3, 2013 at 2:57 am

    I’ve done several searches and came across several expressions for linking the Y position (by itself) to the correct movement I’m looking for. The problem is when I link it, it goes in the opposite direction.

    I want the object I’m linking to move positive from a relative location in space however the SoundKeys effect is referenced at zero, so for some reason the animation forces it to move down.

    Any ideas?

    I also simply separated the Y and X values and pick-whipped it to the SoundKeys’ keyframe and the same thing happens.

    temp = thisComp.layer("Adjustment Layer 3").effect("Sound Keys")("Output 1");
    [temp, temp, temp]

    Joanpablo Torres replied 12 years, 8 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    December 3, 2013 at 3:12 am

    Try it this way:

    y = thisComp.layer(“Adjustment Layer 3”).effect(“Sound Keys”)(“Output 1”);
    value – [0,y,0];

    Dan

  • Joanpablo Torres

    December 3, 2013 at 3:18 am

    Thank you Dan, been fighting with this forever tonight.I appreciate the help!

  • Joanpablo Torres

    December 4, 2013 at 9:08 pm

    Dan, not sure if you’re gonna see this again but I have a follow up.

    I need the object being animated with the expression to travel the entire vertical distance to follow a sine wave that is animating next to it.

    What ends up happening is the ball moves up and down however doesn’t go down enough to match the sine wave. It settles into it’s origin point. Hope that makes sense. Basically it doesn’t travel the entire stretch of space the sine wave does so they don’t appear to match.

    I need to allow the object to oscillate within a set vertical space to match the sine wave, not sure nest way to proceed orr if the expression can be edited to allow for this.

    Thanks again!

    JP

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