tristanstraub / clj-python-trampoline

Open an NREPL session from an existing python process
29 stars 2 forks source link

I managed to execute it on Mac. Can I suggest a few things? #3

Open PlumpMath opened 3 years ago

PlumpMath commented 3 years ago

Thank you so much for making this., @tristanstraub

I had a hard time installing javabridge. My Mac used python-javabridge 4.0.3 instead of the javabridge package. https://github.com/CellProfiler/python-javabridge

Later, I would like to learn how to make a plug-in with clojure using this you made. However, I have to study more because I'm still a blender beginner.) https://github.com/tristanstraub/blender-clj-addon

So one suggestion is, is there an example code that can immediately test coding the blender with cider on now state? I don't have to access the blender object yet(because I'm not ready), but I'm excited this.;; so I just want simple variable values or simple function call information defined on the blender side to be caught on the blender interpreter side. Please let me know if you have any tips like that.

The second suggestion is, If you use the latest version of libpython-clj, it would be more better. Thanks!

PlumpMath commented 3 years ago

The first question is my miss. I'm gonna have to run some more play your code after and ask you a question.

tristanstraub commented 3 years ago

Hi PlumpMath,

sorry for the late reply. Life has gotten in the way. Thanks so much for your thoughts. I have been meaning to use the latest libpython-clj but haven't found the time.

For now, I can just say this demonstrates the viability of using clojure for scripting blender, but I can't take it any further right now because of my limited time. If you are brave, you could try to get the newest libpython-clj working with blender. I did try it very briefly but my code started breaking immediately, which is definately my fault.

tristanstraub commented 3 years ago

The comment about which javabridge you used on mac is a great little piece of information.

PlumpMath commented 2 years ago

https://github.com/clj-python/libpython-clj/issues/188

I put your code in cljbridge.py and I've run it in the latest libpython-clj version.

FreeCAD shares memory between clojure n python, but can't access FreeCAD API, Conversely, UPBGE & Blender can't share memory, but can access Blender API.

FreeCAD video : https://www.youtube.com/watch?v=IPX9heIwZ_o UPBGE(blender) video : https://www.youtube.com/watch?v=bphlLY7zmX8