-
Rhino Command Port
Hi,
I am using emacs as editor for writing rhino python scripts on OS X. Switching back and forward between emacs and rhino is cumbersome. Therefore I am looking for some functionality which allows me to execute python commands from inside emacs.
Is there some way to send commands from some other application (shell, emacs, ...) to rhino and make rhino execute them?
Thanks, Dietrich
-
Senior Member
Hi Dietrich,
There is currently no way to send commands to Rhino on OSX from an external application. I'm discussing this with Marlin since it would be a very useful feature and have been wanting to set up remote debugging as a possibility for python scripts.
Thanks,
-Steve
-
Hi Steve,
Thanks for your answer. Remote debugging or python scripts sounds great indeed 
It would be nice also (as said before) to be able to send commands directly from other editors like emacs
and to integrate Rhino with other applications.
Cheers, Dietrich
PS:
Maya has a Command Port as well: http://download.autodesk.com/us/maya...mmandPort.html
Some time ago I wrote one for Blender: http://www.formgames.com/blender/command-port , https://code.launchpad.net/~diresu/b...mmand-port-002
-
Senior Member
Hi Dietrich,
How do you send commands from emacs using this system? Just a little confused about how this would work with emacs.
Thanks,
-Steve
-
Hi Steve,
I wrote a Blender shell client called "blash", which behaves like an interactive Python shell, but sends the commands via the command port (a socket) to blender for execution. The results of the execution are send back to the client and displayed just in the same way as they would when using a normal python shell.
Blender's event loop, beside handling the events from the Blender GUI, evaluates the Python commands send via the socket (blender command port) and sends the results back to the client.
The emacs python mode, which normally uses a python shell, now simply is configured to use "blash" at the place of "python" 
The nice thing is that both remain responsive, the Blender GUI as well as emacs. The resulting Blender/emacs environment is very handy for developping Python code for Blender.
Of course, the command port can be used by other clients as well - in my case a grammar-based generative design system for architecture.
- Dietrich
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules