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!
Post Reply
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: node editor - pyflow

Post by looo »

microelly2 wrote: Fri May 24, 2019 8:40 am 3. make Pyflow python3 compatible: PyFlow uses Qt.py and Qt.py is compatible to python 2 and 3 https://pypi.org/project/Qt.py/
PyFlow partially works with py3. The difficulties are introduced by your additions. Py3 is a critical point for me. Otherwise I can't contribute. But I guess your approach is to see the possibilities of the library.

Anyway: https://github.com/IlgarLunin/PyFlow/issues/45 ;)
tak
Posts: 31
Joined: Thu May 02, 2019 2:32 am

Re: node editor - pyflow

Post by tak »

microelly2 wrote: Fri May 24, 2019 8:40 am
looo wrote: Thu May 23, 2019 9:08 pm @microelly2 any chance you are moving over to python3? There are a lot of stuff not yet compatible with python3 in your modified library... I guess a node-editor not compatible with python3 has not much future.
There are not to many free node-editors available which can be embedded into FreeCAD.
I used some years ago pse (Python simulation editor) but pse is meantime ported from Qt to kivy, and there is no way to bring kivy and FreeCAD together.
https://youtu.be/X659BgaxutQ

PyFlow is already very complex - 30.000 lines of code.
It takes some time to read te source to understand how it works in detail and where FreeCAD can connect.
So my priorities are:

1. Is it possible to implement a use case where the node-editor simplifies the CAD workflow
2. Is it possible to add specific node types for FreeCAD concepts as separate python libraries
3. make Pyflow python3 compatible: PyFlow uses Qt.py and Qt.py is compatible to python 2 and 3 https://pypi.org/project/Qt.py/
It is wonderful. Thank you.
Beside, may I know why the UI in the youtube video(white one) is different with the source(black one)?
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

I made a node for the FreeCAD.Vector and for the FreeCAD.Console
The scripts now should run in python2 and python3 too.
phpBB [video]

Now I know the way to implement more complex data structures like Rotation, Placement, Colors into nodes and to organize the data exchange between the nodes.


tak wrote: Mon May 27, 2019 2:18 am Beside, may I know why the UI in the youtube video(white one) is different with the source(black one)?
I want to use the default layout of FreeCAD for the dialogs.
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

work in progress
I started a new workbench nodeditor, here the first methods
phpBB [video]


limitations for the moment:
still only tested on linux
both componentes run in different windows (FreeCAD PySide, PyFlow in PyQt)
no documentation

https://github.com/microelly2/NodeEditor
https://github.com/microelly2/PyFlow ( branch master5 is the master customized for FreeCAD - some small diffs of pending merge requests)
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

I'm so happy. Pyflow is a good friend to solve my tasks.Here my Enumeration pin demo.
bp_992.png
bp_992.png (67.72 KiB) Viewed 3046 times
phpBB [video]
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

phpBB [video]
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

phpBB [video]
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

User avatar
bitacovir
Veteran
Posts: 1570
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: node editor - pyflow

Post by bitacovir »

very impresive. keep working!!
:)
::bitacovir::
==================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

Canal Youtube Grupo Telegram de FreeCAD Español

My personal web site
My GitHub repository
Mini Airflow Tunnel Project
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: node editor - pyflow

Post by Kunda1 »

This would be awesome for the FreeCAD.trails WB and GeoMatics WB
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply