2011, Jul––
code: Basic Calliper
Python script to measure the distance between 2 or 3 empties. 2 empties gives you linear distance and the distance delta of x y and z between the locations of the 2 empties. 3 empties gives the radian and degree angle between the 3 empties.
This project teaches me a lot about opengl and the blender implementation called bgl, it utilises world3d coordinate to screen 2d coordinates, drawing glBlend modes, line types, colours, alpha polygon. It also uses blf, which draws text to the current context.
The operational information you need is minute. 1) run the py from blender Text Editor, 2) select 2 or 3 empties and notice the menu appear called 'Basic Calliper' with a draw button and some tick boxes for options. 3) that's it.
download Basic Calliper (GITHUB repository) here. British spelling, deal with it.
№ 6/7
№ 1/1
Next project: → code: Tile Renderer
Previous project: ← code: Edge Tools VTX