sverchok-style preview-objects


(monatsend) #1

Hello,

when I am creating some nodebased geometry with sverchok yet I have these “sverchock geometries” in my viewport.
unless I “bake” them to actual blender-objects these are only editable via the sverchock interface (nodeeditor).

Id love to create something similar via python-scripting but i don’t even know what to search for.

This isn’t the standard bpy.data.objects.new() but some direct drawing to the viewport

can anyone explain this to me?

Thanks so much

monatsend


(Secrop) #2

Sverchok draws directly into the viewport by using the bgl api. The main part is in the ui/nodeview_bgl_viewer_draw.py which has a very simple call to draw lines.


(monatsend) #3

many thanks!