Discussion:
Converting a null's 3d position to 2d screen space.
(too old to reply)
D***@adobeforums.com
2008-09-16 00:32:07 UTC
Permalink
I have 2 nulls exported from XSI. They are 3D layers.

Null 1's Pos [128.4, -157.9, 237.4]
Null 2's Pos [-95.9, -157.9, 237.4]

I want to create Lightning between the nulls. Problem is, the Advanced Lightning effect only accepts 2D positions for Origin and Direction. By eye, I closely matched the null positions to [204.1, 170.1] and [570.4, 170.1]

That's fine for this still. However, I want to animate the camera sweeping around, and would like to do this using the 3D nulls and convert them to 2d screen space via expressions.

Please help
-Dave
A***@adobeforums.com
2008-09-16 01:39:51 UTC
Permalink
The position expression:

toComp(anchorPoint)




should do the trick.
D***@adobeforums.com
2008-09-16 02:16:27 UTC
Permalink
Awesome, I'll try it tomorrow! Hopefully I'll be able to use XSI much more in my pipeline, now that I can transfer nulls and such.

(XSI->AE thread: <http://www.adobeforums.com/webx/.59b67de7/1> )
D***@adobeforums.com
2008-09-16 17:33:45 UTC
Permalink
Thanks again, Aaron. Works perfectly! Saved in my bag of tricks for future reference!
Loading...