Graphical scripting : FreeCAD/PureData connection
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: FreeCAD/PureData connection
Shall we add it to the Addon Manager ?
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
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
Re: FreeCAD/PureData connection
I didn't look yet how the Addon Manager works. If it's a link to the repository and not a snapshot of this certainly buggy draft, I'm ok.
Re: FreeCAD/PureData connection
Yes, it's a link to the repo not a snapshot. It may look like a snapshot but the underlying logic always references the most up to date version of the main branch of the addon.
Edit: You'll need to add a metadata file that references all the dependencies the workbench relies on.
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
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
Re: FreeCAD/PureData connection
Where is the doc about this metadata file ? Does it list all dependencies or only FreeCAD workbenches ?
Re: FreeCAD/PureData connection
FreeCAD can now controls Pure-Data throw 2 objects :
Update to the last FCPDWorkbench to get them. Piano is available in FCPDWorkbench_Samples
- [fc_selObserver] get real-time selection information
- [fc_objObserver] bang when the mouse hovers the defined FC object
Update to the last FCPDWorkbench to get them. Piano is available in FCPDWorkbench_Samples
Re: FreeCAD/PureData connection
Hi,
I found a way to autogenerate Pure-Data patch linked to a python function (see the dev_tools directory). NB : there are no PD embedded help yet but inlets are commented when you open patches.
So all Draft.make_* are know available in FCPD, see you soon for Part.make* ones. Done !
Edit : demo for draft, part and parametric objects was added to FCPDWorkbench_Samples git
I found a way to autogenerate Pure-Data patch linked to a python function (see the dev_tools directory). NB : there are no PD embedded help yet but inlets are commented when you open patches.
So all Draft.make_* are know available in FCPD, see you soon for Part.make* ones. Done !
Edit : demo for draft, part and parametric objects was added to FCPDWorkbench_Samples git
Re: Graphical scripting : FreeCAD/PureData connection
Hi !
I wrote a new object : [fc_controler] is quite similar to DynamicData_Workbench but with an external link to Pure-Data.
So you can use Pure-Data flow as input for an expression (and vice-versa set Pure-Data flow from expression).
It's an easiest way to control your models.
On Pure-Data side, [fc_controler] inlets are connected to IncommingData properties and outlets to OutgoingData ones.
I wrote a new object : [fc_controler] is quite similar to DynamicData_Workbench but with an external link to Pure-Data.
So you can use Pure-Data flow as input for an expression (and vice-versa set Pure-Data flow from expression).
It's an easiest way to control your models.
On Pure-Data side, [fc_controler] inlets are connected to IncommingData properties and outlets to OutgoingData ones.
Re: Graphical scripting : FreeCAD/PureData connection
I like to test PD workbench, can give me some instructions to install/confiugre and first steps?
Thanks.
Thanks.
Re: Graphical scripting : FreeCAD/PureData connection
Hi !
Install
- Clone the git repository in your FreeCAD Mod path
- Install Pure-Data and required external libraries or Purr-Data which includes them.
- Launch FreeCAD
- Load the FCPD workbench
- Set your Pure-Data binary path in the workbench preference page
- Open a FreeCAD document
- Load the FCPD workbench
- Start Pure-Data and internal FreeCAD server by clicking Launch Pure-Data in the FCPD menu or toolbar
- The opening client.pd window implements the connection to FC, don't close it.
- Create a new patch from PD File menu
- Add your needed [fc_…] objects, they are automatically connected to FreeCAD
Re: Graphical scripting : FreeCAD/PureData connection
I follow the instructions and test examples not working, I have errors .
I attached screenshot.
In these example I can make the cube but error when drag to move.
I attached screenshot.
In these example I can make the cube but error when drag to move.
- Attachments
-
- Captura.JPG (391.98 KiB) Viewed 3717 times