Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Control camera using expressions

  • Control camera using expressions

    Posted by Bas Mooij on September 30, 2009 at 1:29 am

    I think I have a fairly simple question, but could not find the answer nonetheless.

    I want to have more control over the 3d camera in AE. I know I can parent it to a null object, but now I want to independently link the the ‘Position of interest’ (POI) and camera movement to 2 different null objects.

    So basically, my question is: What is the proper expression to link my POI to Null object?

    Thanks in advance!
    Greets, Bas

    Bas Mooij replied 16 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    September 30, 2009 at 4:17 am

    This should cover most scenarios:

    C = thisComp.activeCamera;
    L = thisComp.layer(“Null 1”);
    if (C.hasParent){
    C.parent.fromWorld(L.toWorld(L.anchorPoint));
    }else{
    L.toWorld(L.anchorPoint);
    }

    Dan

  • Bas Mooij

    September 30, 2009 at 11:32 am

    Thnaks alot!

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