Page 1 of 1

Get 3D Position values of Motion Path

Posted: June 26th, 2008, 10:08 am
by charliebrown
:D hi, everybody...

I converted a regular motion path to 3D motion path by doing this:

1.) Paste a spiral motion path from illustrator to the position parameter of a 3D Null 1
2.) Create a 3D Null 2 and parent Null 1 to it.
3.) Rotate Null 2: X-axis 90 degrees.
4.) Set auto-orient to Orient along path on Null 1 (optional)
5.) Parent the object you want animated to Null 1

Questions

1.] Everything works fine,BUT how do I access the new 3D positional values of the motion path (Null 1 + Null 2).

2.] The arrow periodically jerk rotates along the path, how can I get the motion to be fluid without gimbal jerky rotation.

here's the project sample:

http://www.simulationbox.com/outgoing/arrowX.aep

Thanks
Sincerely,
Charlie

Re: Get 3D Position values of Motion Path

Posted: July 1st, 2008, 11:50 am
by Mylenium
Transform data is converted using the layer space transforms, in your case something like

m3D=thisComp.layer("Null1")
m2D=m3D.toWorld(m3D.anchorPoint)


would be proper. For the flipping issue you could re-create the orient with your own set of expressions or simply use one more level of parenting and adjust the values manually. Using the AE auto-orient and compensating for its values is certainly more difficult and does not seem necessary for such simple formulaic motions.

Mylenium