Browse Search Popular Register Upload Rules User list Login:
Search:
Algodoo/Python Inter Process Communication

Image:
screenshot of the scene

Author: s_noonan

Group: Default

Filesize: 89.65 kB

Date added: 2024-11-21

Rating: 5.6

Downloads: 187

Views: 129

Comments: 5

Ratings: 2

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

I suspect that maybe 1 or 2 people will try this. If you do, then please leave a message.
Please log in to rate this scene
edit
Similar scenes
Title: Algodoo Inter Process Communication (IPC)
Rating: 5
Filesize: 99.2 kB
Downloads: 229
Comments: 2
Ratings: 1
Date added: 2024/11/20 01:36:24
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Shape2Mesh (uses Python)
Rating: 5
Filesize: 471.43 kB
Downloads: 249
Comments: 1
Ratings: 1
Date added: 2024/11/24 18:31:34
Made with: Algodoo v2.2.1
Rating: rated 5
download
Title: Softbody Generator (Python)
Rating: 5
Filesize: 119.49 kB
Downloads: 688
Comments: 2
Ratings: 1
Date added: 2024/11/30 01:24:13
Made with: Algodoo v2.2.1
Rating: rated 5
download
Title: Radio communication (need scripts)
Rating: 5
Filesize: 15.76 kB
Downloads: 645
Comments: 2
Ratings: 1
Date added: 2020/10/20 15:12:16
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Solaris Inter-Urbino 12
Rating: 6.25
Filesize: 220.71 kB
Downloads: 3159
Comments: 7
Ratings: 6
Date added: 2009/12/23 13:50:28
Made with: Phun
Rating: rated 6.3
download
Title: Artificial Communication Technology
Rating: 5
Filesize: 46.66 kB
Downloads: 714
Comments: 4
Ratings: 1
Date added: 2014/10/03 15:25:08
Made with: Algodoo v2.1.0
Rating: rated 5
download
I tried this, and it works; very impressive project! I managed to send the message "hi ':)" from Python to Algodoo, and "hello Python ':)" from Algodoo back to Python. 10/10 :y

For reference, I ran the Python program by going to VSCode, running "cd [path/to/algodoo]" and then "python3 [path/to/program.py]"
Last edited at 2024/11/21 01:47:46 by 42flowermaster
Thanks for the quick and detailed response.:tup:
All I can say is WOW! That code you wrote in onClick is mind-boggling! I'm guessing you spent many hours designing, testing, and debugging it.

Unfortunately for me, I am not fluent in Python. I learned the basics a few months ago, then I put it aside and didn't do much with it. I would like to run this scene and test it for you but my minimal Python abilities won't allow it. :(
Xray,

Thanks for trying. You don't need to know much about Python. You just need to be able to run the script. Python_IPC_01.py should be in the C:\Users\XRay\Documents\Algodoo folder. It should be 8 KB. If it's 16 KB, then you tried loading it twice (since Algodoo only appends files and does not overwrite them). If the file is too big, just delete it and run the Agodoo scene again. Double-click Python_IPC_01.py and it just might work. That's how it works on my PC (although "Open with > Python" doesn't work). If double-clicking Python_IPC_01.py and "Open with > Python" doesn't work, then open IDLE, which is installed with Python. Find IDLE bt typing "IDLE" in the lower left corner of your desktop if using Windows.

Open IDLE. Do IDLE File>Open...Python_IPC_01.py, a new window opens displaying Python_IPC_01.py code, do Run>Run Module and a Python GUI that looks similar to the "Algodoo IPC A" GUI should show. If for any reason the script fails, IDLE will tell you why it failed. Communicate after Python_IPC_01.py and this Algodoo scene are both running.
Okay, thanks! I'll give it a try. :)