Object trajectory output

   2493   0   0
User Avatar
Member
22 posts
Joined: July 2005
Offline
Hi all,

I have a scene with a few animated objects. Lets say a pair of the attack choppers flies through a ravine and at the debouchment of the ravine makes a move and fires their missiles.

For a compositing purpose, I need to convert the trajectories of the missiles toNDC(string camera_name, vector point_position), and output their (X, Y, Z=0) coordinates for each frame to a delimited “Foo.txt” file.

Here starts my guesswork. I suppose, since, toNDC() works at the SOP level, then the whole thing should be happening there as well. Thus, the way I see this algorithm working is

1.Choose a camera.
2.Get the animation range.
2.Choose a Point Group (because one may want to deal with just a point).
3.Get P of GCX, GCY, GCZ for $F.
4.Convert toNDC.
5.Output to “Foo.txt”
6.Repeat p.3-5 till the last frame.

I had my brain really twisted over a couple last days trying to resolve my problem, but I couldn't even figure out by what means this can be achieved.

Any help is greatly appreciated.

Cheers,
D'n'D
  • Quick Links