
Hi Matt, If you run “chimera —send somecode.py” from a shell it will try to use a socket to send the Python file to an already running Chimera. Writing code to establish your own socket connection will be a major pain. It has to be integrated into the Tk event loop. You’d probably be better off sending Chimera an http request using the Chimera RESTServer capability described here http://www.cgl.ucsf.edu/chimera/docs/ContributedSoftware/restserver/restserv... An older mechanism of talking to Chimera by sending commands to it standard input (stdin), but this requires starting Chimera with another process piping the commands to Chimera. http://www.cgl.ucsf.edu/chimera/docs/ContributedSoftware/readstdin/readstdin... I recommend trying RESTServer. Tom On Mar 26, 2014, at 2:37 AM, Dougherty, Matthew T wrote:
Hi,
I just purchased a Tangent Wave that I plan to interface into chimera.
The best design is to use sockets. Is there any precedence for using sockets in chimera?
Matthew Dougherty National Center for Macromolecular Imaging Baylor College of Medicine _______________________________________________ Chimera-dev mailing list Chimera-dev@cgl.ucsf.edu http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev