Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Dan Ebberts Light Fall Off expression problem…

  • Dan Ebberts Light Fall Off expression problem…

    Posted by Michael Lansdell on February 2, 2009 at 3:59 pm
    decay = .005;
    noFalloff = 200;
     
    L = thisComp.layer("Light 1");
     
    d = length(L.transform.position,transform.position);
    if (d < noFalloff){
      value;
    }else{
      value/Math.exp((d - noFalloff)*decay);
    }
    
    

    I want to use Dan Ebberts Light Fall Off expression (https://www.motionscript.com/design-guide/falloff.html if you don’t know it) to add a bit more depth to a graphic sting I’m making, but when I try and use it, I get the message:

    “After Effects warning: undefined is not an object.
    Error occurred at line 6.
    Expression disabled.”

    Any ideas?

    Michael Lansdell

    Online Editor,
    Available Light Productions Ltd

    My system:

    2 x 3 GHz Quad-Core Intel Xeon
    5GB DDR2 RAM
    512MB ATI Radeon X1900 XT
    OS X 10.4.11
    Final Cut Pro 6.0.4
    Blackmagic Design DeckLink HD Extreme (6.6.2)

    Michael Lansdell replied 17 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    February 2, 2009 at 8:44 pm

    Which version of AE?

    Try changing line 6 to this:

    d = length(L.position,position);

    Dan

  • Michael Lansdell

    February 3, 2009 at 10:48 am

    That worked perfectly, thank you!

    I’m on 6.5, my boss is stingy…

    Also, slightly embarrassed that you answered it! Your site has helped me so much, it’s very good :o)

    Michael Lansdell

    Online Editor,
    Available Light Productions Ltd

    My system:

    2 x 3 GHz Quad-Core Intel Xeon
    5GB DDR2 RAM
    512MB ATI Radeon X1900 XT
    OS X 10.4.11
    Final Cut Pro 6.0.4
    Blackmagic Design DeckLink HD Extreme (6.6.2)

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