What is the best way to send scripting commands to Jmol from an external
application?  I am developing an application in C++ which will monitor for
events from an XBox Kinect and use that information to control Jmol.  I've
seen appsync -- http://chemapps.stolaf.edu/jmol/docs/misc/appsync.txt --
and I can make it work from one Jmol instance to another, but how can I get
the same results from my C++ application?  I am using Jmol 12.2.27.

I've tried a simple test using curl:
Jmol console: $ sync -3000
Linux console: $ curl -H "Content-Type: application/json" -X POST -d
'{"type":"command", "command":"rotate"}' localhost:3000
but nothing happens.

What am I missing?  And is there a better way?


Regards,
Benn Snyder
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to