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

Re: node editor - pyflow

Post by microelly2 »

tak wrote: Fri Feb 14, 2020 9:21 am In this video at 0:18. It can visualize the shape in FC after clicking excute of the vectoryArray node without and connection/ setting.
Why I can't visualize like this?
This was an early version. Now there is only a Shape_out pin.

To visualize there are two ways:
The green eye - for short viewing
and the view3D node - to create a long time living freecad object.

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

Re: node editor - pyflow

Post by microelly2 »

the node to "close" BSpline Surfaces.
The result is a periodic surface.
phpBB [video]
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

Curve(2D) offset
phpBB [video]
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: node editor - pyflow

Post by Kunda1 »

Is it possible to use realthunder's appimage generator (https://github.com/realthunder/FreeCADMakeImage) to bundle pyflow in to an AppImage for testing ?
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
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

Kunda1 wrote: Tue Feb 18, 2020 2:38 pm Is it possible to use realthunder's appimage generator (https://github.com/realthunder/FreeCADMakeImage) to bundle pyflow in to an AppImage for testing ?
Maybe this is possible.
But I think such an image is not needed.
Pyflow and node editor are python modules git hosted.
The only need is to git clone them into the users personal MOD directory
updating is a simple git pull
There is only one extra step needed: register the FreeCAD Package path
https://forum.freecadweb.org/viewtopic. ... 40#p360762
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: node editor - pyflow

Post by Kunda1 »

microelly2 wrote: Wed Jan 15, 2020 8:50 pm There is an entry in menu tools
'Display Preferences Window'
cp_119.png
There you have to register the extra packages (FreeCAD package)
see the configuration in my case.
Please add this to https://github.com/microelly2/NodeEditor#install
Thanks
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
vara
Posts: 9
Joined: Wed Feb 26, 2020 2:11 am

Re: node editor - pyflow

Post by vara »

hello everyone, I tried to install pyflow in FreeCAD 0.18 with Ubuntu. I already clone the three packages in the install part of this link
https://github.com/microelly2/NodeEditor
but I open freeCAD,I can't find the PyFlow workBench from the workbench dropdown list
Bance
Veteran
Posts: 4274
Joined: Wed Feb 11, 2015 3:00 pm
Location: London

Re: node editor - pyflow

Post by Bance »

From git hub installation instructions "v0.19.18403 or greater"
vara
Posts: 9
Joined: Wed Feb 26, 2020 2:11 am

Re: node editor - pyflow

Post by vara »

Bance wrote: Wed Feb 26, 2020 9:19 am From git hub installation instructions "v0.19.18403 or greater"
I extracted the appImage. There is an error "cannot import name 'clock' from 'time'". I found some ref from google.
It is a bug of python 3.8. someone advice
"
try:
from time import perf_counter as clock # or process_time instead of perf_counter?
except ImportError:
from time import clock
"
but I cannot from time import clock in nodeeditor/InitGui.py
Attachments
pyflow3.png
pyflow3.png (229.25 KiB) Viewed 1191 times
Bance
Veteran
Posts: 4274
Joined: Wed Feb 11, 2015 3:00 pm
Location: London

Re: node editor - pyflow

Post by Bance »

You clearly didn't search this forum about this, because the first three hits a search returns provide the answer you are looking for....
Post Reply