Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects › Hi to all, i don’t know anything about the expressions! how to fix this thing?

  • Hi to all, i don’t know anything about the expressions! how to fix this thing?

    Posted by Tommaso Guarniera on November 23, 2015 at 6:13 pm

    I’d like to make a square rotating with the basses of a song, with the plug-in Trapcode Sound Keys, i copied in a video this expression:
    minAudio = 0;
    maxAudio = 100;
    minStretch = 90;
    maxStretch = 130;
    audioLev = thisComp.layer(“Sound Keys”).effect(“Sound Keys”)(“Output 1”);
    s = linear(audioLev, minAudio, maxAudio, minStretch, maxStretch);
    [s,s]

    but i think that it works just on the scale, how to fix?
    sorry for the bad english i’m italian.
    Help me please i’m becoming crazy

    Kalleheikki Kannisto replied 10 years, 10 months ago 2 Members · 1 Reply
  • 1 Reply
  • Kalleheikki Kannisto

    November 24, 2015 at 7:24 am

    Changing the last line to “s” instead of “[s,s]” should do it. Scale is a two-dimensional value (x,y) while rotation is one-dimensional (angle).

    (Actually, deleting the last line would do it as well, since the next to the last line gives the same value.)

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