Graphical scripting : FreeCAD/PureData connection

Show off your FreeCAD projects here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
flachyjoe
Veteran
Posts: 1869
Joined: Sat Mar 31, 2012 12:00 pm
Location: Limoges, France

Re: Graphical scripting : FreeCAD/PureData connection

Post by flachyjoe »

bleber wrote: Mon Sep 13, 2021 1:56 pm test examples not working
Thank for the report.
It's fixed : https://github.com/FlachyJoe/FCPDWorkbe ... ad913966f7
- Flachy Joe -
Image
User avatar
flachyjoe
Veteran
Posts: 1869
Joined: Sat Mar 31, 2012 12:00 pm
Location: Limoges, France

Re: Graphical scripting : FreeCAD/PureData connection

Post by flachyjoe »

Hi,
I updated the sample repository with README and the clone demo.

Pure-data [clone] allow to instantiate many abstraction in the same time and redirect all their outlets in the same wire. It's a great way to create an object collection.
- Flachy Joe -
Image
bleber
Posts: 259
Joined: Thu Jun 30, 2016 5:12 pm

Re: Graphical scripting : FreeCAD/PureData connection

Post by bleber »

I test all examples but the only that works in my system is the parametric_object_demo.pd
Y attach tne error windows.
Attachments
Captura.JPG
Captura.JPG (339.16 KiB) Viewed 4193 times
User avatar
flachyjoe
Veteran
Posts: 1869
Joined: Sat Mar 31, 2012 12:00 pm
Location: Limoges, France

Re: Graphical scripting : FreeCAD/PureData connection

Post by flachyjoe »

bleber wrote: Thu Sep 23, 2021 10:29 pm I test all examples but the only that works in my system is the parametric_object_demo.pd
Y attach the error windows.
Hi,
thank for the interest.
Please pull the git repo, this issue is fixed since https://github.com/FlachyJoe/FCPDWorkbench/pull/19

EDIT : I'm pushing a new [clone] demo. random-tiles is in the samples repository
screnshot.png
screnshot.png (64.13 KiB) Viewed 4007 times
- Flachy Joe -
Image
User avatar
flachyjoe
Veteran
Posts: 1869
Joined: Sat Mar 31, 2012 12:00 pm
Location: Limoges, France

Re: Graphical scripting : FreeCAD/PureData connection

Post by flachyjoe »

Hi !
A new message for a great update:
The new PDInclude object can store a *.pd file in the FreeCAD document, so you can save geometry and logic together.
I had to rewrite the PDServer loop in order to run in a QTimer object. When PDServer slowed down FreeCAD, it now depends of the FreeCAD available time to run.

Here is the first FCStd which includes a Pure-Data patch.
Double-click the PDInclude object in the tree to open a scale and rotation GUI
test_include.FCStd
(5.28 KiB) Downloaded 92 times
Capture d’écran_2021-10-01_18-29-24.png
Capture d’écran_2021-10-01_18-29-24.png (23.03 KiB) Viewed 3536 times

NB : To store your own patch:
  • Click the icon
    new-include.png
    new-include.png (1.68 KiB) Viewed 3536 times
  • Click the … button of the PDFile property
  • Choose an existent *.pd
  • The existent file is not linked to PDInclude but copied.
TODO : Two tools, one to create a blank patch and open it and a second to choose an existent patch.
- Flachy Joe -
Image
kisolre
Veteran
Posts: 4162
Joined: Wed Nov 21, 2018 1:13 pm

Re: Graphical scripting : FreeCAD/PureData connection

Post by kisolre »

flachyjoe wrote: Mon Sep 13, 2021 6:41 am Hi !
Install
  1. Clone the git repository in your FreeCAD Mod path

    .
    .
    .
You should add that to the Readme.md.
User avatar
flachyjoe
Veteran
Posts: 1869
Joined: Sat Mar 31, 2012 12:00 pm
Location: Limoges, France

Re: Graphical scripting : FreeCAD/PureData connection

Post by flachyjoe »

kisolre wrote: Tue Jan 11, 2022 9:51 pm You should add that to the Readme.md.
+1 ;)
Done !
- Flachy Joe -
Image
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Graphical scripting : FreeCAD/PureData connection

Post by Kunda1 »

Any new demos ? This looks so interesting.
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
flachyjoe
Veteran
Posts: 1869
Joined: Sat Mar 31, 2012 12:00 pm
Location: Limoges, France

Re: Graphical scripting : FreeCAD/PureData connection

Post by flachyjoe »

Kunda1 wrote: Wed Jan 12, 2022 1:55 pm Any new demos ? This looks so interesting.
Hi Kunda1,
I had a try with inverse kinematic, in the french forum : https://forum.freecadweb.org/viewtopic. ... 57#p540357
It works when arms start vertical but I can't create the IK chain correctly for random position. Problem is in the local orientation computation : I asked help in the ikpy repository.
- Flachy Joe -
Image
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Graphical scripting : FreeCAD/PureData connection

Post by Kunda1 »

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
Post Reply