Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › Opacity and speed

  • Posted by Juan Gordo on May 21, 2014 at 4:14 pm

    Hi all

    This is my first post so please be gentle 😉

    I am trying to figure out an expression to change the opacity of an object inversely proportional to its speed, so when it goes fast is very transparent and gets less transparent gradually until it stops. The objects have different speeds to start with as they are scattered randomly initially and eased into place with the following expression (thanks to grey machine):

    seedRandom(index,true)
    start = random([-1000,-1000,-2000] , [3100,2100,1000]);
    end = value;

    easeOut(time, 0, 1 + (index*thisComp.frameDuration)/4, start, end)

    I have other parameters like rotation an scale set to be relative to speed no problem as they need to decrease at the same ratio, but I am struggling with the opacity as it needs to be the inverse. I would appreciate any help or hints to push me in the right direction.

    Thanks all in advance

    Dan Ebberts
    replied 12 years, 4 months ago
    2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    May 21, 2014 at 5:03 pm

    Maybe something like this:

    maxSpeed = 1500;
    linear(position.speed,0,maxSpeed,100,0)

    Dan

  • Juan Gordo

    May 22, 2014 at 8:49 am

    Thanks! I’ll give that a try.

    Just one question, why are you capping the max speed? Does that mean that if the actual speed is outside those ranges this will not take effect?

  • Dan Ebberts

    May 22, 2014 at 4:01 pm

    Correct.

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