CompuServe Messages

Get node pos in KEYFRAM!

    17-Mar-94 06:22:38
Fm: Gus Grubba 70673,1605
To: Martin Enthed 100277,1272
I'm just guessing here but I became pretty good in just guessing my way around lately <g>… I can think of two ways: First, find the object's parent (if any) and get its position. It would be messy as you would have to scan the objects in search of their children (I could not find any "kxp_get_parent()" function) hopping to find the object you're interested in. Then you would have to adjust the position based on the difference between both objects. The second, great if works, would be just interpolating the object (the camera in this case) position. I would think that if you interpolate an object's position, 3D Studio would return the position where the object would be at a point in time (frame) taking in consideration the object is linked to some other object. This is easy to try. Just call kxp_interpolate_key() for a camera that doesn't have any key other than its initial key but linked to an object moving around.