# 2D- Bounding box around human model with sub meshes and armature

Mast is the entire model, It has sub meshes as can been seen from the figure, like eyes, clothes, but belonging to the same human model. I need to get the mesh of all of that together, so as to draw a 2d bounding box around the object on rendered image (like in this link 2d-bounding box on images)

My object is a human model with armature , imported. I am trying to get 2D bounding box using the code here . In this only object meshes can be passed? How can I pass the complete model to this?

when I pass armature object, this gives error : Object does not have geometry data in the line

me = me_ob.to_mesh(scene, True, 'PREVIEW')


• You want the bounding box of the armature or mesh? – Tak Mar 15 '17 at 23:38
• It seems the armature "Mast" is what you try to convert to a mesh. Armatures have no geometry and can not be converted directly with "to_mesh". If this is really the armature you want to convert, you can use a script like this one: blender.stackexchange.com/questions/75040/… – lemon Mar 16 '17 at 5:23
• @lemon Thanks, Actually no, not the armature. Mast is the entire model, It has sub meshes as can been seen from the figure, like eyes, clothes, but belonging to the same human model. i need to get the mesh of all of that together. – p.Neu Mar 16 '17 at 8:13
• @Tak I need the bounding box for the whole model,(so, i think armature +mesh), so that I get bounding boxes at each frames of animation. – p.Neu Mar 16 '17 at 8:15