Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Dan Ebberts

    August 20, 2007 at 6:34 pm

    Try this:

    maxDist = 200;

    p = thisComp.layer(“Null A”).transform.position;
    v = transform.position – p;
    if (length(v) > maxDist){
    p + normalize(v)*maxDist
    }else{
    value
    }

    This assumes neither null has a parent.

    Dan

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