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
saso
Veteran
Posts: 1924
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: node editor - pyflow

Post by saso »

microelly2 wrote: Sat Apr 11, 2020 8:28 am I wrote the nodes after my investigation of the corona data sets, but the nodes are not only useful for this kind of data.
I see here a way to use external tables( in this first stage only simple csv files) as parameter sets for cad models...
Yes, I understand the idea and find it nice to see how flexible the system can be, but still I cannot ignore the feeling that it is maybe a bit too much too soon, that it would maybe be better to still focus a bit more on the more basic things and examples.

I guess node editor could be in the future merged in to the master and have a default basic set of nodes and then have in the "Addons manager" an additional tab for "Nodes" where the users could install additional node packages for more specific needs and that most of this node packages would be created by the wider community.
User avatar
ranska_
Posts: 13
Joined: Thu Apr 09, 2020 10:44 am

Re: node editor - pyflow

Post by ranska_ »

microelly2 wrote: Sat Apr 11, 2020 8:33 am
ranska_ wrote: Fri Apr 10, 2020 9:38 pm
If some one have any Idea of what can I do to solve it.
You still have to register the package see:
https://forum.freecadweb.org/viewtopic. ... 40#p360762

One more remark:
I still have to publish the new packages cypher and www:

*add documentation
* refine code
*tests and make the nodes robust.

this will happen next days.
Thank a lot for your help.
After register the package I was able to see the package list.
Sadly when I try to do things with node I get some message errors after click on "create all Nodes for Tests".

Code: Select all

tried to run nodeeditor.dev_all.Coin.run_FreeCAD_ShapePattern(self)
-----------; 1; FreeCAD_Dragger
-----------; 2; FreeCAD_QuadMesh
-----------; 3; FreeCAD_Camera
SoOrthographicCamera
Position; 0.0 0.0 -0.0
tried to run nodeeditor.dev_all.Coin.run_FreeCAD_Camera(self)
-----------; 4; FreeCAD_Boolean
-----------; 5; FreeCAD_Compound
-----------; 6; FreeCAD_Loft
no data on pin; shapes
PyFlowFreeCAD.Nodes.FreeCAD_Combination.FreeCAD_Loft
FreeCAD_Loft
no shapes
-----------; 7; FreeCAD_RepeatPattern
-----------; 8; FreeCAD_Seam
PyFlowFreeCAD.Nodes.FreeCAD_Combination.FreeCAD_Seam
FreeCAD_Seam
no ShapeA
PyFlowFreeCAD.Nodes.FreeCAD_Combination.FreeCAD_Seam
FreeCAD_Seam
no ShapeA
PyFlowFreeCAD.Nodes.FreeCAD_Combination.FreeCAD_Seam
FreeCAD_Seam
no ShapeA
-----------; 9; FreeCAD_Slice
-----------; 10; FreeCAD_Sweep
-----------; 11; FreeCAD_ApplyPlacements
-----------; 12; FreeCAD_Reduce
-----------; 13; FreeCAD_FlipSwapArray
flipswap
FreeCAD_FlipSwapArray
shape; (0,)
flipswap
FreeCAD_FlipSwapArray
shape; (0,)
flipswap
FreeCAD_FlipSwapArray
shape; (0,)
-----------; 14; FreeCAD_IndexToList
-----------; 15; FreeCAD_ListOfPlacements
-----------; 16; FreeCAD_ListOfShapes
-----------; 17; FreeCAD_Transformation
tried to run nodeeditor.dev_all.Conversion.run_FreeCAD_Transformation(self)
tried to run nodeeditor.dev_all.Conversion.run_FreeCAD_Transformation(self)
tried to run nodeeditor.dev_all.Conversion.run_FreeCAD_Transformation(self)
tried to run nodeeditor.dev_all.Conversion.run_FreeCAD_Transformation(self)
-----------; 18; FreeCAD_Zip
-----------; 19; FreeCAD_xyz2uv
-----------; 20; FreeCAD_uv2xyz
-----------; 21; FreeCAD_ListOfVectors
-----------; 22; FreeCAD_ListOfVectorlist
-----------; 23; FreeCAD_MoveVectors
-----------; 24; FreeCAD_ScaleVectors
-----------; 25; FreeCAD_Toy3
Running the Python command 'Micro_createAllNodesforTests' failed:
Traceback (most recent call last):
  File "<string>", line 199, in Activated
  File "<string>", line 1, in <module>
  File "/home/ranska/.FreeCAD/Mod/NodeEditor/nodeeditor/Commands.py", line 1275, in createAllNodesforTests
    node=pfwrap.createNode('PyFlowFreeCAD',name,name)
  File "/home/ranska/.FreeCAD/Mod/NodeEditor/nodeeditor/pfwrap.py", line 98, in createNode
    node = classNodes[nodeClass](nodeName,**kvargs)

('FreeCAD_Toy3',)
I also try https://www.youtube.com/watch?v=0RjuXiqfQZo
What it look like to be the "node editor hello world".
I got some errors
I fix few of by installing dependency
python3-tk
python3-scipy

Now when I insert dragger node and click on start I got this message

Code: Select all

reloaded: /home/ranska/.FreeCAD/Mod/NodeEditor/nodeeditor/tools.py
Traceback (most recent call last):
  File "/home/ranska/.FreeCAD/Mod/PyFlow/PyFlow/Packages/PyFlowBase/Pins/ExecPin.py", line 69, in call
    super(ExecPin, self).call(*args, **kwargs)
  File "/home/ranska/.FreeCAD/Mod/PyFlow/PyFlow/Core/PinBase.py", line 598, in call
    self.onExecute.send(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/usr/lib/python3/dist-packages/blinker/base.py", line 267, in <listcomp>
    for receiver in self.receivers_for(sender)]
  File "/home/ranska/.FreeCAD/Mod/NodeEditor/PyFlowPackages/PyFlowFreeCAD/Nodes/FreeCAD_Coin.py", line 149, in start
    nodeeditor.dev.run_dragger(self)
AttributeError: module 'nodeeditor.dev' has no attribute 'run_dragger'
At this step I can't find what is missing. Is there something more I should install ?
Once again thanks a lot for your work and help.
Last edited by ranska_ on Sat Apr 11, 2020 2:11 pm, edited 1 time in total.
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

Uups,
There are files not checked in.
I will fix it.
AttributeError: module 'nodeeditor.dev' has no attribute 'run_dragger'
User avatar
ranska_
Posts: 13
Joined: Thu Apr 09, 2020 10:44 am

Re: node editor - pyflow

Post by ranska_ »

Ok thanks,
No worries.
Let us know when you're update the master branch.

Maybe after a few group of users report you successful installation you can publish a release ?

Or at least it would be good to have a git tag with a version number off a stable branch or a release version.
It's written on the readme v0.22 did you have some version tag on your local machine ?
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

phpBB [video]

the question was to find a tangent constrainted helmet
https://forum.freecadweb.org/viewtopic. ... 40#p391301
----
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]
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: node editor - pyflow

Post by kisolre »

I am sure that how to get this running is somewhere in the 24 pages (so far) of this thread but could you add a link to that to the first post so it is easy to find for those (like me) who just want to give it a try?
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

kisolre wrote: Tue May 05, 2020 8:09 pm I am sure that how to get this running is somewhere in the 24 pages (so far) of this thread but could you add a link to that to the first post so it is easy to find for those (like me) who just want to give it a try?
see for install
https://github.com/microelly2/NodeEditor
and for register packages
https://forum.freecadweb.org/viewtopic. ... 40#p360762
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

BSpline Surfaces are not developable.
To get a paper model of a terrain I split the surface in stripes, convert them to ruled surfaces and approximate the result by a chain of trinagles.
The result can be printed out, cutted and composed to a 3D paper model.
The last steps can be done by children too.
the surface:
Image
the approximation CAD model
Image
the drawings
Image
Image
cutted
Image


The first paper model. I will repeat it with thick cardboard to get it more stable.
Image
Image
The node to develope bspline surfaces
Image
Post Reply