I want to export the bounding box of a mesh that is animated by an armature, and that means the bounding box changes each frame. But object.getBoundBox() always returns the same 8 corners, for every frame. Am I doing something wrong? Or does it return the boundingbox of the undeformed mesh?
for i in range(startframe, endframe):
scene.currentFrame(i)
scene.makeCurrent()
bbox = object.getBoundBox()
print bbox
You mean NMesh.GetRawFromObject, and then search for the min/max coordinates myself? Hmm, that will be a big performance hit. But looks like it can´t be helped…
Thanks Ph, ofcourse you´re right, it works!
I tried it only on Blender2.28 until a few minutes ago when I thought “that can´t be, he obviously is sure that it works”. And it does work on 2.32. Thanks alot for your help!