node editor - pyflow

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
User avatar
Posts: 1576
Joined: Fri Apr 28, 2017 4:23 pm

Re: node editor - pyflow

Postby Joel_graff » Sun May 12, 2019 9:54 pm

kkremitzki wrote:
Sun May 12, 2019 8:26 pm
Joel_graff wrote:
Sun May 12, 2019 8:11 pm
microelly2 wrote:
Sun May 12, 2019 7:29 pm
"Der Spatz in der Hand ist besser als die Taube auf dem Dach" (German proverb:The sparrow in the hand is better than the dove on the roof).
Would love to know the origin / meaning of that one. lol
I'm guessing it has to do with eating them, sparrows are small and have almost no meat whereas doves are decent eating, so even though the dove on the roof would be better to eat, you've got a sparrow in your hand already ready to work with.
I wouldn't have thought of that.

The only related proverb I could think of was, "A bird in the hand is worth what it brings." :)
FreeCAD Trails workbench for transportation engineering:

pivy_trackers 2D coin3D library:
Posts: 1859
Joined: Thu Oct 18, 2018 9:18 pm

Re: node editor - pyflow

Postby vocx » Sun May 12, 2019 10:33 pm

Just for reference, this is the other thread were a node editor is suggested.
looo wrote:
Sun Aug 31, 2014 9:38 am
I don't think an extern libary for nodes is needed. The work for the Gui and the connections is less thn the creation of the nodes. So I think it is better to use Qt/PySide for the Gui, and make the logic with python. Here is a picture of some freecad interaction :D :
Posts: 1859
Joined: Thu Oct 18, 2018 9:18 pm

Re: node editor - pyflow

Postby vocx » Sun May 12, 2019 11:07 pm

quick61 wrote:
Sun May 12, 2019 8:38 pm
Think this would be nice to use with the Raytracing workbench for doing more complex renderings, instead of having to manually edit the POV-Ray scripts
Something like this was already attempted by Luke Parry a long time ago.

He proposed a new Render Project to define the material properties and appearance of the objects to render inside FreeCAD, and then use Luxrender to produce the final result.

However, that effort didn't really go further. The repository is here ... raytracing
Though it would take a little to build the libraries for the textures, materials, patterns and such. In the end though, we could end up with one of the most advanced POV-Ray modeling/rendering tools out there. Just a thought...
I'm not sure. I believe POV-Ray already has some GUIs to set up material properties and things like that. See POV-Ray Front End Programs.

The Material module of FreeCAD already defines material properties for many different substances. It could be extended with information specific to Blender's Principled BSDF shader, so if the FreeCAD file is opened in Blender it would automatically include sensible presets to render those materials.

This sounds to me like the best workflow. If the user would like to render a good scene, he or she shouldn't mess with text files in POV-Ray, just import the scene into Blender and use the node editor there; see Tutorial Render with Blender.

In Blender there is a plugin to import FreeCAD files, written by our very own Yorik; see Tutorial Render with Blender#Importing_plugin.

Also, there is apparently a new Render Workbench that can be installed from the Addon Manager, which could be extended to use Blender's renderers (EEVEE and Cyles). So, I don't think putting too much effort into POV-Ray is absolutely necessary, as the FreeCAD+Blender combination is probably better in every aspect.
Posts: 2951
Joined: Mon Nov 11, 2013 5:29 pm

Re: node editor - pyflow

Postby looo » Mon May 13, 2019 11:34 am

Looks promising. I tested the application and noticed several things:
- Additional deps are needed: nine (similar to six), blinker, multipledispatch
- The gui looks nice. The visualization changes for different zoom levels.

I hope we see this coming to freecad.
please help with my conda-packaging efforts:
User avatar
Posts: 4445
Joined: Tue Nov 12, 2013 4:06 pm

Re: node editor - pyflow

Postby microelly2 » Mon May 13, 2019 6:49 pm

phpBB [video]

The node editor as a Dockwindow
The property tab for nodes
A node to change some placement data of a FreeCAD object
User avatar
Posts: 1161
Joined: Tue Dec 31, 2013 4:10 pm
Location: France

Re: node editor - pyflow

Postby Chris_G » Mon May 13, 2019 8:27 pm

Great Job !
User avatar
Posts: 5923
Joined: Thu Jan 05, 2017 9:03 pm

Re: node editor - pyflow

Postby Kunda1 » Mon May 13, 2019 8:56 pm

Woah, the future has arrived 8-)
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
Posts: 279
Joined: Wed Feb 06, 2019 10:30 pm

Re: node editor - pyflow

Postby HakanSeven12 » Mon May 13, 2019 9:00 pm

Looks great :)
User avatar
Site Admin
Posts: 11577
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil

Re: node editor - pyflow

Postby yorik » Mon May 13, 2019 9:47 pm

Amazing!! :)
User avatar
Posts: 726
Joined: Sat Apr 19, 2014 6:23 am

Re: node editor - pyflow

Postby bitacovir » Mon May 13, 2019 11:24 pm


One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

My Blog
Mini Airflow Tunnel Project