#Get node pos in KEYFRAM!
4 messages in this thread
How can I get the hole of an object,camera or lights position in
keyframer. I know how to get the positionkeys for a node, but if that
node is linked to another node that is moving I wont get the right
position for the linked node. It can be soo that the linked object
hasn't got a key at all! Is there a way?
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.
I have thought of both these ways, the first will be somewhat messy even if one
has that "kxp_get_parent()" function. Though it would be a great feature for
IPAS4 wishlist!!
I haven't tried "kxp_interpolate_key()" I just assumed that it does what it
says in the manual<bg>! But I will try it out, one never can tell what is
luring inside this wonderful 3D world 3D Studio provides! That is what makes it
exciting<g>!!
-M.E
Sorry, "KXP_Interpolate_key" gets only the objects own position dissregarding
the possibility of being influensed by parent objects.
Anyone else having an idea of how to get a node's actual position in 3D space?
"kxp_get_pivot" thogether with "kxp_get_bound_box" with world coordinates?!
"kxp_get_bound_box" only works with objects, and I want to get the camera and
light position too!
What does "kxp_get_xform" retreive? Does it solve my problem?
-M.E
Ps All these questions have to do with the next version of KEYDXF.KXP as I
think you notice by the questions<g>.