Extensions:2.6/Py/Scripts/3D interaction/Math Viz
|UI location||Group: AddMesh|
|Version||0.1||Author(s)||Campbell Barton (ideasman42)|
|Current version download||https://svn.blender.org/svnroot/bf-extensions/trunk/py/scripts/addons/space_view3d_math_vis/|
- This script is in Blender 2.5 Add-Ons menu.
- In User Preferences you can see the Add-Ons menu.
- You can activate the script here.
- The script will now show up in the 3D view toolbar.
Sometimes when writing python scripts you stumble on complicated matrix transformations, ray intersections, rotation conversions, mesh modifications etc. were its useful to view lines, points and matrices in the viewport to better understand the problem.
Creating mesh data for this purpose isn't difficult but is cumbersome. The purpose of this addon is to make it as quick and easy as possible.
Math Vis works by displaying python console defined mathutils typed variables in the 3D viewport.
The following types are supported
- Vector(...) - point
- [Vector(...), Vector(...), ...] - line
- Matrix(...) - transformation.
- Quaternion(...) / Euler(...) - transformations (without translation
- Enable the Script in the Add-Ons panel.
- Create a 'Python Console' space.
- In the python console defines a mathutils variable.
hello_world = Vector((1, 2, 3))
- You should now be able to see this point in the 3D view!
- This script is not smart about dealing with multiple consoles, only 1 is used.
- Rotations (Eulers & Quaternions) have no logical location and are drawn at the Cursor.
- For support report bugs in the tracker.
- Back to Extensions:2.5/Py/Scripts