Get rotation of an object with a ChildOf constraint in 2.49b

In Blender 2.49b, when an object has a ChildOf constraint on it, is there a way to get the rotation of the object in the global space? I want to get the way the constraint causes the object to rotate and the transformation properties give the rotation with respect to its parent instead of the way the constraint affects its rotation. I have been able to get the location of the object by snapping the cursor to the selected object but I havn’t figured out a way get the rotation.

My reason for doing this to animate a character holding and releasing a prop. I have a ChildOf constraint on the prop being held and the parent is a hand or finger bone of the armature. I set the influence to 1 when the object is being held and 0 when it is not being held. Although my primary interest is doing this in 2.49b, I am still curious if this is possible (or if there are plans to make it possible) in 2.5x.

What do you need the object’s rot for? If you’re needing it for positioning the object in the orientation it was in when the character lets go of the object, use insert visual loc/rot before you turn off the constraint. Does what the name implies, it sets a keyframe for the location & rotation of the object as it appears in the view port. Let’s say a character drops an object on frame 30, on frame 29 you need keyframes set for loc/rot of it. Then on frame 30 insert visual loc/rot keyframes, then turn off the constraint and key it. Object stays in position and the transform properties window will display loc & rot. Sample file attached of a character moving a cube in 2.49…

Randy

Attachments

ChildOf.blend (367 KB)

Thanks for the help. I didn’t realize that there were visual loc/rot options. I’ve been inserting keyframes from within python and I can’t find any ways to key visual loc/rot from within python, but I suppose it would satisfy my needs to key visual loc/rot outside python to get the coordinates and then use those coordinates from within my python scripts.

Oh, you might want to ask that question in the python section then…

Randy