microelly2 / nodeeditor Goto Github PK
View Code? Open in Web Editor NEWNode editor for FreeCAD with PyFLow
License: MIT License
Node editor for FreeCAD with PyFLow
License: MIT License
UI/UX request: https://forum.freecadweb.org/viewtopic.php?f=34&t=41432
Hi!
I followed the installation instructions in the README (cd ~/apps/freecad/.FreeCAD/Mod; git clone https://github.com/microelly2/PyFlow; suzanne git clone https://github.com/mottosso/Qt.py; git clone https://github.com/microelly2/NodeEditor
). The check for the imports seems good:
but when I click create all Nodes for Test
from the menu tests
, I get the following error:
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/suzanne/apps/freecad/.FreeCAD/Mod/NodeEditor/nodeeditor/Commands.py", line 1202, in createAllNodesforTests
from PyFlow.Packages.PyFlowFreeCAD.Nodes.FreeCAD_Coin import nodelist
No module named 'PyFlow.Packages.PyFlowFreeCAD'
Just in case the instructions were supposed to be followed to the letter, I tried without the implicit step of creating a new document, and get an error because there is no FreeCAD.ActiveDocument
.
I noticed I have a folder .FreeCAD/Mod/NodeEditor/PyFlowPackages
but not .FreeCAD/Mod/NodeEditor/PyFlow/Packages
(notice the slash before Packages
), so I tried making a copy with (cd ~/apps/freecad/.FreeCAD/Mod/NodeEditor && mkdir PyFlow && touch PyFlow/__init__.py && cp -ai PyFlowPackages PyFlow/Packages)
. That seemed to help, and it fails much later:
I was able to create some nodes by clicking, but it seems I can't get any constant to work nor any FreeCAD nodes to work.
I'm running the latest FreeCAD AppImage:
OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23546 (Git) AppImage
Build type: Release
Branch: master
Hash: 6b017f9a16b15b0e628c8d874c4058442dee5548
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United Kingdom (en_GB)
The three cloned repos are at these commits:
PyFlow/
commit d13453357e3d58e54f9c240a5639efdfaafe18ec (HEAD -> master7, origin/master7, origin/HEAD)
Merge: 6c610942 bdc66711
Author: microelly2 <[email protected]>
Date: Sat Apr 11 15:36:51 2020 +0200
Merge branch 'master' of https://github.com/wonderworks-software/PyFlow into master7
Qt.py/
commit 8a8953bc672b75a157a6c2a9b49e48985bb3e8a7 (HEAD -> master, tag: 1.3.2, origin/master, origin/HEAD)
Merge: 6ea602a defede1
Author: Marcus Ottosson <[email protected]>
Date: Sat Oct 3 10:39:59 2020 +0100
Merge pull request #350 from blurstudio/import_error_warning_improvement
Include the module name that failed to import in warning
NodeEditor/
commit 7e1826b1f80879f7eb5f35857582b5e13212a80a (HEAD -> master, origin/master, origin/HEAD)
Author: microelly2 <[email protected]>
Date: Thu Apr 30 10:02:04 2020 +0200
fix bug force recompute input nodes for lists
Hi @microelly2
Did you add anywhere regarding the enabling of FreeCAD Nodes? I found the solution on the forum from one of your posts and I think that would be great to add an installation note on the readMe.md about that.
OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22665 (Git)
Build type: Release
Branch: master
Hash: b0d7850406e046f3b7a8cd5da261e7d54df6bd99
Python version: 3.8.6
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United States (en_US)
FreeCAD 0.19 and PyFlowFreeCAD works without any problem on the system above. In addition to the installation instruction on the readme.md, I added the FreeCADNode Package on PyFlow Edit>Preferences>General added the Additional package locations: {Installation Location}\FreeCAD_0.19.22665\Mod\NodeEditor\PyFlowPackages and SaveAndClose. Afterwards, I restarted FreeCAD and everything works pretty smooth. These instructions are at the end of the page, here based on @microelly2 's comment.
Hi @microelly2, I know a little about PyFlow and its features, however, I think it'd good you check https://animation-nodes.com (Animations, "Particles", ...) too, which I hope to give you a clear view
There are some advanced node-based visual programming open standards and tools too, but I think at this stage Animation Nodes is enough
Also, I would be happy to know more about your efforts on STEP AP242 which we talked about on FreeCAD forum.
I work on DfMAL and PLM is crucial for our success: https://github.com/DfMALab
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.