Imagine a scene containing multiple objects, for example a bed and a chair. The bed and the chair aren't blender-objects themselves, but they consist of many subobjects. To view the dimensions, rotation etc of one of these subobjects is not a problem, but what if I want to see the dimension of the whole bed? I have thought about parenting all sub-bed-objects to one of the parts or adding them all to a group. However, so far I have not been able to figure out how to display the dimensions of a whole group. How could I do that?
2 Answers
I have created an addon that will create a mesh cube that encompasses all selected objects. Of note is that non-render objects such as camera, lamp and lattice objects report there bounding box as a zero size cube, this can lead to a cube of zero size that is only seen in the outliner.
To use you can save this link to your addon folder or to somewhere convenient and use the Install from file button in the preferences. You will then find Create Bounding Box under the Add Mesh menu.
This will give you a single object that clearly shows the outer dimensions in the object properties as if all objects had been joined.
-
$\begingroup$ Like your script! Good example how to write a script for me. Also, it does help getting the dimensions of a group of objects :) $\endgroup$ Commented Jul 30, 2014 at 7:23
-
$\begingroup$ I'm trying to use it as function not an addon this is my attempt but it's not working pasteall.org/blend/index.php?id=45713 could you please advise? $\endgroup$– TakCommented Feb 26, 2017 at 21:59
-
$\begingroup$ Calling 'object_data_add` gets properties like loc/rot/scale from the calling operator, as you aren't using an operator you set it as None and manually set the location. Working script here $\endgroup$– samblerCommented Feb 27, 2017 at 7:36
-
$\begingroup$ @sambler thank you very much, but it's not working properly as shown here pasteall.org/blend/index.php?id=45724 if you switch between commenting each last two lines in the script you will see the difference. $\endgroup$– TakCommented Feb 27, 2017 at 7:59
-
1$\begingroup$ @sambler for some reason when I do the scaling before calling the function it doesn't work. I tried running the scaling part from one text block then running your script from another text block and it works fine. Once I place them together it doesn't work. $\endgroup$– TakCommented Feb 27, 2017 at 8:09
Blender doesn't support showing dimentsions of dupli-group instances or children (directly), You can however use the Ruler to measure it, hold Ctrl to snap to the extents of the objects.