Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions 3d space to Comp

  • Posted by Ariel Levental on June 8, 2008 at 10:06 am

    hi everyone

    i have a question that i’m sure has been already answered here, although i couldn’t really find it.

    i have a Comp with nulls and a camera (it’s a tracked shot and that comp holds the tracking information)
    I want to use the position in space of a certain null.
    problem is the 3d tracked comp is bigger than my main comp.
    so no matter what i try with the fromWorld and toComp – it doesn’t work

    i want to use the nulls position in space to drive the animation of a 2d point in my main comp…
    and i just can’t seem to do it

    Please HELP…

    my main comp is 1024*576
    my 3d Camera Comp is 1920*1080

    thanks in advance
    Ariel

    Dan Ebberts replied 18 years, 1 month ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    June 8, 2008 at 10:50 pm

    Assuming your comp with nulls and camera is named “camera comp”, the null you’re interested in is “Null 1”, and the camera comp is a precomp in your main comp (and has its 3D and collapse transforms switches turned on), it would be like this:

    L = comp(“camera comp”).layer(“Null 1”);
    CL = thisComp.layer(“camera comp”);
    CL.toComp(L.toWorld(L.anchorPoint));

    Dan

  • Ariel Levental

    June 9, 2008 at 7:35 am

    ah…that’s the thing…
    i did exactly that…
    For testing purposes i created a comp with a camera and a null and added movement to the camera.
    Named it “camera comp” and the null is named “Null 1”.
    i then put the “camera comp” into a smaller comp, added the collapse transformations switch and added a point expression controller
    and in the point expression controllers point parameter i’ve added the expression you wrote…
    And…nothing happens. No movement at all.
    Although inside the camera comp the camera is moving.

    Am i doing something wrong?
    HELP

    Ariel

  • Dan Ebberts

    June 9, 2008 at 2:08 pm

    OK – so you’re animating the camera in the camera comp and applying the point control that that comp as a layer in the smaller comp – is that correct? In that case you wouldn’t want to turn on the collapse transforms and probably all you’d need for the point control would be something like this:

    L = comp(“camera comp”).layer(“Null 1”);
    L.toComp(L.anchorPoint);

    Dan

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