To learn a bit about panels I’ve created a script that measures the distance of selected objects and the 3D cursor (this depends on what is selected).
To be honest I didn’t search if something like this already exists (for 2.5 that is, I know of the 2.4x scripts  and ).
As already mentioned I did this to learn a bit about the panel API stuff in 2.5.
This script displays in OBJECT MODE:
- The distance of the 3D cursor to the origin of the 3D space (if NOTHING is selected).
- The distance of the 3D cursor to the center of an object (if exactly ONE object is selected).
- The distance between 2 object centers (if exactly TWO objects are selected).
- The surface area of any selected mesh object.
Display in EDIT MODE (Local and Global space supported):
- The distance of the 3D cursor to the origin (in Local space it is the object center instead).
- The distance of the 3D cursor to a selected vertex.
- The distance between 2 selected vertices.
- The surface area of any selected face.
It’s very helpful to use one or two “Empty” objects with
“Snap during transform” enabled for fast measurement.
Open issues / TODO
- Get units to work with the script (Right now only raw blender units are used, not metric/imperial stuff)
- Lamps and other objects are not show with their correct icon … dunno if this is a good idea?
- Icon for absolute origin (is there one?)
- Measurements in Edit Mode have to be updated manually. Not much I can do here, this is a problem that is in Blender quite some time now.
gitorious.org has been discontinued. There is (was?) still a read-only mirror of the former gitorious.org site available - which doesn’t seem to work anymore?
Anyway, the last version is also available in the “Blender Add-ons Contrib” (BAC) Blender code repository:
THE INFO BELOW IS OUTDATED!
Link to the script
(Save the “Raw data blob” link there as a file into your .blender/scripts/addons/ directory.
You can then enable the plugin in the User Preferences under Add-Ons.)
Alternatively: Direct download link (right-click and save) to the most recent version:
If the version does not match the most recent version reported in the thread you can also try to download the script from the blender-addons GIT repository (most of the time I’ll upload this version first):
(View Raw File -> Download File)