0

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.

Ray Mairlot
  • 29,192
  • 11
  • 103
  • 125
piotrek
  • 261
  • 1
  • 6
  • 14
  • 1
    do you know OpenGL ? there is bgl ( blender opengl wrapper ) you can use – Chebhou Jul 28 '15 at 15:08
  • 3
    Start by looking and experimenting with TextEditor -> Templates -> Python -> Operator Modal Draw – zeffii Jul 28 '15 at 15:08
  • 2
    related : 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

0 Answers0