Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions setting a range

  • Posted by Jamil Yamani on May 17, 2012 at 1:56 pm

    hi all

    i have been using some code to sample some audio and it has been working fine up until now.

    i am using a slider value to drive a position on a transform:Repeater1 on a Shape layer, please see code below

    the values should read between 50 and 100 but they are not.

    can anyone see why?

    cheers
    jamil

    x = comp("Audio Amplitude").layer("Bass").effect("Final Range Value")("Slider");
    linear(x,0,20,50,100);
    [x,0];

    The Electric Canvas
    Large Format Projection Specialists
    Sydney, Australia

    Jamil Yamani replied 14 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    May 17, 2012 at 2:21 pm

    You’re not incorporating the result of linear() into your final value. I’d guess you need to modify it like this:

    x = comp(“Audio Amplitude”).layer(“Bass”).effect(“Final Range Value”)(“Slider”);
    newX = linear(x,0,20,50,100);
    [newX,0];

    Dan

  • Jamil Yamani

    May 17, 2012 at 6:00 pm

    Dan

    This isn’t the first time you have helped me thanks very much! It worked a treat.

    Jamil

    The Electric Canvas
    Large Format Projection Specialists
    Sydney, Australia

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