PDA

View Full Version : measure absolute coordinates within resolutuin gate


ivobakker
08-14-2012, 02:17 PM
I wonder if someone knows how to do the following:

I would like to be able to get the x and y coordinates of an object. But not in world units, but in pixels in the resolution gate?
So when the object is in the top left corner of the image it would get 0,0. The object vould be a locator, so it had no size.

When i have the locator animated i would like to output an array of x and y coordinates for each frame.

And as a bonus i was wondering if it is also possible to take into account the visibility. So whgen the locatot gets behind another object (seen from the camera) the x and y would be something like undefined.

I suppose it is not an easy question, but maybe someone know how to do it.
Tnx!

CGTalk Moderation
08-14-2012, 02:17 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.