Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Applying Converted Audio Keyframes to only one axis

  • Applying Converted Audio Keyframes to only one axis

    Posted by Bryan on February 6, 2007 at 4:50 pm

    What’s the expression if you want converted audio keyframes to only apply to the x OR y axis (not both x and y, or z for that matter). When you pick whip to the channel slider from a position transformer of an object, it applies the expression to both axis’.

    temp = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    [temp, temp]

    How would this be changed so it only effects the x or the y.

    Thanks.

    -B

    Dan Ebberts replied 19 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    February 6, 2007 at 6:19 pm

    X only:

    temp = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    [temp, value[1]]

    Y only:

    temp = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    [value[0], temp]

    Dan

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