「Extensions:2.6/Py/Scripts/3D interaction/Math Viz」の版間の差分

提供: wiki
移動先: 案内検索
(相違点なし)

2013年8月23日 (金) 12:51時点における版

Math Vis
Display console defined mathutils variables.
UI location Group: AddMesh
Version 0.1 Author(s) Campbell Barton (ideasman42)
Blender 2.57 License GPL


Executable information
File name space_view3d_math_vis/
Current version download https://svn.blender.org/svnroot/bf-extensions/trunk/py/scripts/addons/space_view3d_math_vis/



Installation

  • 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.

Introduction

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.


Add-ons MathVis.png

The following types are supported

  • Vector(...) - point
  • [Vector(...), Vector(...), ...] - line
  • Matrix(...) - transformation.
  • Quaternion(...) / Euler(...) - transformations (without translation


Math Vis

  • 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!


Known Issues

  • 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.

Support


  • For support report bugs in the tracker.