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')


Is there any other way to do it?
Could some one please help?
You can use this addon made by @sambler's answer found here, which creates a bounding box for the selected objects. So you can select both armature and mesh in your script and modify the addon to get the bounding box data without creating the bounding box cube.