Results 1 to 3 of 3
  1. #1
    Member monatsend's Avatar
    Join Date
    Sep 2012
    Location
    Munich/Germany
    Posts
    70

    sverchok-style preview-objects

    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
    take a look on our current project
    Enderal - the shards of order
    And hey, if you like what we do, follow us on facebook



  2. #2
    Member Secrop's Avatar
    Join Date
    Dec 2011
    Location
    Berlin
    Posts
    1,845
    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.



  3. #3
    Member monatsend's Avatar
    Join Date
    Sep 2012
    Location
    Munich/Germany
    Posts
    70
    many thanks!
    take a look on our current project
    Enderal - the shards of order
    And hey, if you like what we do, follow us on facebook



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •