ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

problem i have with "toWorld" expression

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Assaf Goldlust
problem i have with "toWorld" expression
on Jun 3, 2017 at 12:00:48 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[/img]

[img]http://i63.tinypic.com/2rmnmtf.jpg[/img]

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.





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?


Return to posts index

Dan Ebberts
Re: problem i have with "toWorld" expression
on Jun 3, 2017 at 1:27:04 am

What is it the you're trying to do?

Dan



Return to posts index

Assaf Goldlust
Re: problem i have with "toWorld" expression
on Jun 3, 2017 at 4:59:01 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.


Return to posts index


Dan Ebberts
Re: problem i have with "toWorld" expression
on Jun 3, 2017 at 5:58:05 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



Return to posts index

Assaf Goldlust
Re: problem i have with "toWorld" expression
on Jun 3, 2017 at 6:54:04 am

i see, thank you.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]