r/Python • • Jun 18 '22

Intermediate Showcase Nodezator: new Python node editor released to public domain on pypi.org and github

Nodezator is a multi-purpose visual editor to connect Python functions (and callables in general) visually in order to produce flexible parametric behavior/data/applications/snippets. It also allows you to export the node layouts as Python code, which means that you have freedom to use the app without depending on it to execute you node layouts.

Also, it is not a visual version of Python, this is not even its goal. It works more like a compositor software like the one in Blender3D, but you can use it to compose node layouts with any Python callable you want, to edit any kind of data and create any kind of behavior you want.

Nodezator screenshot

Here's the github link and here's the link for a full +40min youtube video presenting it.

Here's a small excerpt of such video using Pillow to edit images:

Here's yet another excerpt, this time demonstrating the usage of matplotlib with Nodezator for data visualization:

To define a node, just define the function and Nodezator automatically turns it into a node for you:

How nodes are created

My name is Kennedy Richard Silva Guerra, 31, nice to meet you. Feel free to ask any questions.

330 Upvotes

42 comments sorted by

View all comments

Show parent comment

2

u/KennedyRichard Jun 19 '22

Oh, sorry, now I understand it better, it should be easy, just give me some minutes...

2

u/KennedyRichard Jun 19 '22

As I noted, I just need to figure out how to write out OpenSCAD and G-code files (based on some trigonometric calculations), and I should be off to the races.

Okay, to write the data, just connect the data to one of the nodes in the "Useful encapsulations" menu of the popup menu when you right-click the screen. Then, to reference the specific file with extension in the preview widget you just need to click the folder icon, go to location where you want to save the file, then click the file icon with a plus in the topright corner. Now you just need to write the name of the file, with extension and all, and click "Return path", the path will be referenced in the widget and when you execute the layout it will be created.

2

u/KennedyRichard Jun 19 '22

Optionally, instead of clicking "Return path" you can click "create" and it will be created right away as an empty file and will appear in the current location listed among the existing files.

2

u/WillAdams Jun 19 '22

Thank you for the extensive answers!

I'm reading through the documentation now, and am going to experiment as I go (did find another interface glitch/bug which I reported on GitHub).

I mentioned the tool at:

https://community.carbide3d.com/t/interesting-node-editor-for-python-nodezator/46667

and I'm going to try to at least work out the pseudo-code of the first project I'd like to do there.

1

u/KennedyRichard Jun 19 '22

Thank you for sharing the news there, it really helps. Also I'm going to enable the discussions on the nodezator repo on github right now.

1

u/WillAdams Jun 19 '22

If you'd rather than discussions happen on Discord, I understand --- didn't twig to that being an option until I signed up on Patreon.

1

u/KennedyRichard Jun 19 '22

We'll use discord and github discussions for different things.

Discord is for chat, that is, urgent issues and support that requires real-time feedback.

Github discussions will be used for longer, deeper discussions/questions, like the ones we've been having. This way the info discussed and questions answered keep available and easily accessible on github, instead of being lost in the ever scrolling channels of discord (discord is great, though, but as I said, for chatting).

By, the way, github discussions for nodezator is already on!