Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Help with expression tied to Audio Keyframes

  • Help with expression tied to Audio Keyframes

    Posted by Alturo Nguyen on October 5, 2005 at 8:05 pm

    Goal, tie the position of a layer to the “Audio Amplitude” Layer (keyframes from audio data)

    Getting “expression result must be of dimension 2, not 1” error
    …Figured needed to change min/max stuff to (x,y) type of thingy…still didn’t work
    *******************************************
    minAudio = 0;
    maxAudio = 25;
    minPosition= -1; //Tried this>> maxPosition= (1,1);
    maxPosition= 1; //maxPosition= (1, 1);

    audio=thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”)
    linear(audio,minAudio,maxAudio,minPosition,maxPosition)
    *******************************************

    still no go

    Thank you

    Dan Ebberts replied 20 years, 11 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    October 5, 2005 at 9:30 pm

    Your minPosition and maxPosition variables need to be two dimensions, like this:

    minPosition = [0,0];
    maxPosition = [100,100];

    They could be any x and y values, they just need to be in the brackets.

    Dan

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