I need to get the x,y,z values of an object as well as the bounding box through a script. So far I have the area and volume with the following code:
bm = bmesh.new() bm.from_object(bpy.context.object, bpy.context.scene) area = str(sum(f.calc_area() for f in bm.faces)) volume = str(bm.calc_volume())
I tried something like this for the bounding box:
bb = str(bm.dimensions())
bb = bpy.data.objects["test2-2"].dimensions
but neither have worked. As far as the x,y,z values go I'm stumped. Please let me know if you have any suggestions.