Is there a Python reusable component similar to the Blender node editor?

Blender has a powerful, easy-to-use, flexible node editor:

Blender 2.6 node editor

Is there a Python library that will allow me to easily create a visually evolving environment? In Blender, the node editor works with shaders, images, colors, etc., and I would like to determine the types of nodes, sockets, and preview widgets myself, as when creating a β€œvisual DSL”.

Change I do not want to create custom nodes in Blender, but use the LIKE component in the node editor in my own projects. I removed the Blender tag to avoid confusion.

+7
python reusability
source share
1 answer

You can find how to do this in the documentation:

http://wiki.blender.org/index.php/User:Phonybone/Python_Nodes

If you want to use nodes to create objects and grids in the procedure with it, I recommend that you use and / or fork and improve this project:

http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Nodes/Sverchok

(These guys also use the associated API)

If you have special blender questions, for example, I also recommend that you ask about this on this special blender exchange website:

https://blender.stackexchange.com/


EDIT:

As far as I know, in any user interface libraries there is no ready-made node-editor widget or anything similar. However, it is quite simple to implement the basic rectangles, input and output ports, and bezier strings to connect them. After the first steps, it is only a matter of preference, how many hours do you invest in design and smaller details.

I implemented my own in Python with the tkinter built-in library:

enter image description here

And then later in Pyglet , and then, to improve speed, I implemented it in pure C with OpenGL wrapped in Cython for use in Python

enter image description here

+8
source share

All Articles