Page 3 of 4

Re: Graphical scripting : FreeCAD/PureData connection

Posted: Mon Sep 13, 2021 3:02 pm
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

Re: Graphical scripting : FreeCAD/PureData connection

Posted: Thu Sep 23, 2021 8:32 pm
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.

Re: Graphical scripting : FreeCAD/PureData connection

Posted: Thu Sep 23, 2021 10:29 pm
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.

Re: Graphical scripting : FreeCAD/PureData connection

Posted: Fri Sep 24, 2021 7:03 am
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 3098 times

Re: Graphical scripting : FreeCAD/PureData connection

Posted: Fri Oct 01, 2021 4:39 pm
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 67 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 2627 times

NB : To store your own patch:
  • Click the icon
    new-include.png
    new-include.png (1.68 KiB) Viewed 2627 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.

Re: Graphical scripting : FreeCAD/PureData connection

Posted: Tue Jan 11, 2022 9:51 pm
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.

Re: Graphical scripting : FreeCAD/PureData connection

Posted: Tue Jan 11, 2022 10:27 pm
by flachyjoe
kisolre wrote: Tue Jan 11, 2022 9:51 pm You should add that to the Readme.md.
+1 ;)
Done !

Re: Graphical scripting : FreeCAD/PureData connection

Posted: Wed Jan 12, 2022 1:55 pm
by Kunda1
Any new demos ? This looks so interesting.

Re: Graphical scripting : FreeCAD/PureData connection

Posted: Wed Jan 12, 2022 4:02 pm
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.

Re: Graphical scripting : FreeCAD/PureData connection

Posted: Wed Jan 12, 2022 5:27 pm
by Kunda1
Thanks!