1 # ##### BEGIN GPL LICENSE BLOCK #####
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 # ##### END GPL LICENSE BLOCK #####
22 "name": "Math Vis (Console)",
23 "author": "Campbell Barton",
25 "blender": (2, 57, 0),
26 "location": "View3D > Tool Shelf or Console",
27 "description": "Display console defined mathutils variables in the 3D view",
28 "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"
29 "Scripts/3D_interaction/Math_Viz",
30 "tracker_url": "http://projects.blender.org/tracker/index.php?"
31 "func=detail&aid=25545",
32 "support": "OFFICIAL",
33 "category": "3D View"}
40 from . import utils
, draw
46 draw
.tag_redraw_all_view3d()
49 draw
.callback_enable()
52 console_python
.execute
.hooks
.append((console_hook
, ()))
56 draw
.callback_disable()
59 console_python
.execute
.hooks
.remove((console_hook
, ()))