Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions problem i have with “toWorld” expression

  • problem i have with “toWorld” expression

    Posted by Assaf Goldlust on June 3, 2017 at 12:00 am

    so. I was parenting my camera to a null object.
    and then i applied the following expression to the camer’as position.
    C=thisComp.layer(“Camera Controll”)
    C.toWorld([0,0,0])

    but two weird thing happened when I used this:

    1.

    [img]https://i.imgur.com/JT6XKps.jpg%5B/img%5D

    [img]https://i63.tinypic.com/2rmnmtf.jpg%5B/img%5D

    As you can see the position of the camera has changed.
    important note:those screen shots are “top view”

    Another thing weird thing is the movement of the camera.
    https://www.youtube.com/watch?v=EhxTo6df6iI&feature=youtu.be
    i find this confusing becuse i tought this expression should just tell the camera to take the position’s data back in reltation to the world and not from the Null.
    im trying to understand how this expression is suppose to work and i would very appreciate if someone will be able to explain why this things happens?

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

    Assaf Goldlust replied 8 years, 11 months ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    June 3, 2017 at 1:27 am

    What is it the you’re trying to do?

    Dan

  • Assaf Goldlust

    June 3, 2017 at 4:59 am

    I was trying to get the camera to move witht he null as he normaly would moved when parented to it.
    but to show the position’s data in relation to the world insted of in relations to the null,

    tough im having hard time understanding why its important? im trying to undersatnd why the expression got this behave the way its behaves now. i didnt asked for solutions to my problem.

  • Dan Ebberts

    June 3, 2017 at 5:58 am

    Your expression is attempting to set the camera’s position to its own position in world space. However, since the camera has a parent, that position will be interpreted in the parent’s layer space (relative to its upper left corner), which in turn causes the camera to move, which changes its position in worlds space. Frankly I wouldn’t know what to predict for the final result.

    Dan

  • Assaf Goldlust

    June 3, 2017 at 6:54 am

    i see, thank you.

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