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!
looo
Posts: 2656
Joined: Mon Nov 11, 2013 5:29 pm

Re: node editor - pyflow

Postby looo » Fri May 24, 2019 9:15 am

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: 22
Joined: Thu May 02, 2019 2:32 am

Re: node editor - pyflow

Postby tak » Mon May 27, 2019 2:18 am

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
Posts: 4319
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Postby microelly2 » Mon May 27, 2019 6:04 pm

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
Posts: 4319
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Postby microelly2 » Tue Jul 02, 2019 6:48 pm

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
Posts: 4319
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Postby microelly2 » Tue Jul 09, 2019 6:46 pm

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 394 times
phpBB [video]
User avatar
microelly2
Posts: 4319
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Postby microelly2 » Wed Jul 10, 2019 2:42 pm

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

Re: node editor - pyflow

Postby microelly2 » Thu Jul 11, 2019 7:39 pm

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

Re: node editor - pyflow

Postby microelly2 » Fri Jul 12, 2019 11:00 am

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

Re: node editor - pyflow

Postby bitacovir » Fri Jul 12, 2019 3:35 pm

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

My Blog
Mini Airflow Tunnel Project
User avatar
Kunda1
Posts: 4779
Joined: Thu Jan 05, 2017 9:03 pm

Re: node editor - pyflow

Postby Kunda1 » Fri Jul 12, 2019 3:36 pm

This would be awesome for the FreeCAD.trails WB and GeoMatics WB
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features