On Fri, Jun 8, 2012 at 10:40 AM, Benn Snyder <benn.snyder@gmail.com> wrote:
I published my C++ Jmol wrapper and C socket helpers on github, since they will be a part of the larger project which will be published there eventually.  I've licensed them under the permissive MIT license and I welcome you to include them in Jmol however you see fit.  https://github.com/piedar/molect


Great. I'd love to do that. Or, I'd love if YOU did that. :)
 
The code which handles input from the Kinect is not yet published, but will probably be under GPL when it is.



OK. LGPL would be my preference, but I'll understand if you prefer GPL.


 
Now for a Jmol question:
If I have a scene with multiple distinct molecules, how can I select an arbitrary molecule for rotation/translation?

select molecule=1
select within(molecule, atomno=3)
select within(molecule, C30 and 1.1)
etc.


rotate selected ...
translate selected ...

you  might want to also check out the COMPARE command. It is very powerful.

You can also set it up so that the user's mouse actions rotate only the molecule they have clicked.

Bob


 


Regards,
Benn



On Thu, Jun 7, 2012 at 11:17 PM, Robert Hanson <hansonr@stolaf.edu> wrote:
please consider posting it with us on SourceForge within Jmol.

On Thu, Jun 7, 2012 at 3:08 PM, Benn Snyder <benn.snyder@gmail.com> wrote:
I was bashing my head against a wall most of yesterday until I figured out that JSON strings must be newline terminated for JsonNioService to accept them.  Now it works - I can send JSON commands from my program to Jmol with sync on an arbitrary host and port using a little C socket lib I wrote.  Now I'm working on a C++ wrapper class for the functionality I need.  I'll post code soon, on Github or similar.


Regards,
Benn



On Wed, Jun 6, 2012 at 7:25 AM, Robert Hanson <hansonr@stolaf.edu> wrote:
Take a look at the MPJmolApp.java

Basically you open a socket on port 3000 and start sending requests. I think you would set up Jmol with sync -3000 so that it is the server, not the client.

On Tue, Jun 5, 2012 at 4:46 PM, Benn Snyder <benn.snyder@gmail.com> wrote:
Bob,

Alright, I have checked out trunk.  I can get two instances of Jmol to
communicate by doing
Jmol1: $ sync -3000
Jmol2: $ sync 3000 'command'

But I am stumped as to how to do this from C++.  As for the Kinect, I am
using OpenNI/NITE.  I've seen what MolecularPlayground has done and we'd
like to do something similar but hopefully more complex and in-depth.


Regards,
Benn

------------------------------------------------------------------------------
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



--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900



------------------------------------------------------------------------------
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



------------------------------------------------------------------------------
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




--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900



------------------------------------------------------------------------------
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



------------------------------------------------------------------------------
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




--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900