Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Controlling XY with audio

  • Controlling XY with audio

    Posted by Antony Buonomo on March 10, 2010 at 8:27 pm

    Hi

    Can anyone suggest a way of approaching this problem?

    I am trying to animate some text to some audio. In general, I know what to do (convert the audio to keyframes etc) however what I’m looking for is a way of controlling the XY position via the audio (both channels). I have added a Transform effect and am trying to reconcile the output of the audio (1 number) to the required 2 numbers (X and Y). I also want the audio to control the XY position of a particle emitter. Specifically I would like more movement vertically (in the Y) than horizontally. I know this is probably got something to do with arrays… but…errr… that’s it, that’s all I got!

    Thanks

    A

    Vertigo Productions
    https://www.vertigo.co.uk

    Antony Buonomo replied 16 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    March 10, 2010 at 9:32 pm

    Something like this might be what you’re after. The first two variables define the amplitude and direction (angle) of the movement:

    multiplier = 5;
    angle = -60;

    aud = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    a = degreesToRadians(angle)
    x = aud*multiplier*Math.cos(a);
    y = aud*multiplier*Math.sin(a);
    value + [x,y]

  • Antony Buonomo

    March 11, 2010 at 2:12 pm

    Thanks Dan

    I’m making progress with that. It took me a little while to understand what the angle variable was doing. However, when I tried to pick-whip the XY position of the particle emitter to the XY position of the Transform effect the particles went way out of whack. Is that because somehow the deformed text and the particle layer don’t exist in the same ‘3-D’ space? (basically I have a letter ‘O’ deforming and moving vertically responding to audio and I want the emitted particles to follow the letter as it moves).

    Thanks again

    A

    Vertigo Productions
    https://www.vertigo.co.uk

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