I want to write a script for blender, and I wonder how can I draw something using python in the 3D view? Like lines or triangles? I mean something like debug drawing.
Asked
Active
Viewed 1,118 times
0
-
1do you know OpenGL ? there is bgl ( blender opengl wrapper ) you can use – Chebhou Jul 28 '15 at 15:08
-
3Start by looking and experimenting with TextEditor -> Templates -> Python -> Operator Modal Draw – zeffii Jul 28 '15 at 15:08
-
2related : http://blender.stackexchange.com/questions/912/draw-geometry-on-screen-using-bgl-module and http://blender.stackexchange.com/questions/21463/draw-points-on-screen-with-bgl-python – Chebhou Jul 28 '15 at 15:09