ouch! Definitely a bug!!! I'll check.
On Tue, Mar 29, 2011 at 11:03 AM, Yves NOEL <[email protected]> wrote:
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107
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
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users