Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › Need to change result values, 82-100 to be 0-400, simple math isn’t enough

  • Need to change result values, 82-100 to be 0-400, simple math isn’t enough

    Posted by Kris Alvarado on April 15, 2015 at 9:53 pm

    Ah I am dying, I’ve been looking all day and my eye are about to fall out. Any help and I would really appreciate it.

    I want to make it when I scale up a precomp it’s linked to a matching drop shadow. Fake 3D basically

    So my precomp scales from 82-100 and my drop shadow needs to go from 0-400.
    I added transform.scale[0] in the drop shadow size, so now it goes from 82-100. I’ve racked my brain multiply and dividing with -81*100 but nothing works, I need to go form 0 or maybe 1.

    oh please help, I’m a total noob and at your mercy!

    transform.scale[0]-81*100

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

    April 16, 2015 at 1:58 pm

    Try this:

    s = transform.scale[0];
    linear(s,82,100,0,400)

    Dan

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