Hi Noel,
This was a bug that Bob fixed in 12.1.36. The notice with version info is
here:
http://www.mail-archive.com/jmol-users@lists.sourceforge.net/msg16649.html
Otis
--
Otis Rothenberger
Department of Chemistry
Illinois State University
Normal, IL 61790-4160
http://chemagic.org
----------------------------------------
From: "Yves NOEL" <yves.n...@upmc.fr>
Sent: Tuesday, March 29, 2011 12:10 PM
To: jmol-users@lists.sourceforge.net
Subject: [Jmol-users] bond picking and draw picking problems
Hi Jmol users,
I need your help for 2 subjects:
A) I want to know which bond was clicked by the user.
I have typed in the console the following commands:
set bondpicking true
set picking on
set pickcallback "alert"
2 remarks:
1) I have to click right on the middle of the bond to have the info
2) Once the "alert" message displayed, the bond is deleted although I
have never used the "set picking DELETEBOND" command.
Is this behavior normal?
B) I haven't find a way to retrieve the info of a draw object that has
been picked.
It would be useful (to me at least) to have something like:
set pickcallback "alert"
set picking draw
to get the draw informations (the same as "show draw")
I have tried the following:
+ In a javascript file :
function testdraw(){
var dr=jmolScriptEcho('show draw');
alert(dr);
}
+ In the jmol console (or script file)
set pickcallback "testdraw" ;
set picking draw ;
But nothing happens. Am I wrong somewhere?
Thank you for your help
Yves NOEL
----------------------------------------------------------------------------
--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users