Yves, there were two problems. First, somehow you must have engaged the
model kit or otherwise set the picking to DELETEBOND. And because of that
and the fact that there was no way to undo that, it remained. This is fixed
for the next version of Jmol. Unfortunately there is no workaround, since as
you point out, there is no set bondPickingMode ident. The command will be:

set picking identifyBond

in the next version of Jmol. And when you leave the model kit, Jmol will set
that automatically.

Bob


> Is there any hope to have it working not only with the middle of the bond
> but also when another part of the bond is clicked.
> As far as I know, all objects that are clickable are points/atoms like
> (even for draw objects).
>
>
pretty much you have to aim for the middle.


>
> Concerning the draw picking infos, is it possible to create something like
> :
> set picking draw
> set drawPickingMode ident
> set pickCallback alert
>
> ... to otain the infos of the draw object picked (like show draw)?
>
>
Yes, I think just

set drawpicking
set pickcallback alert


Bob



> Thanks
>
>
> Yves
>
> Le 31/03/2011 00:29, Robert Hanson a écrit :
>
> Well, in any case, something is setting the bondPickingMode, and I did find
> that modelkit was doing it.
>
> What is the exact context you are seeing this problem in, Yves?
>
> Bob
>
>
>  On Tue, Mar 29, 2011 at 1:33 PM, Yves Noel <yves.n...@upmc.fr> wrote:
>
>>  Otis : Ok. I was using 12.1.33; excuse me for disturbing.
>>
>> Bob : Are you thinking about a bug for my "draw info" problem?
>> I do not know nothing about modelkit mode. (So I guess I don't use it ).
>>
>> Thanks
>>
>>
>> Yves
>>
>> Le 29/03/2011 18:59, Robert Hanson a écrit :
>>
>> Q: Were you using modelKit mode?
>>
>> On Tue, Mar 29, 2011 at 11:50 AM, Robert Hanson <hans...@stolaf.edu>wrote:
>>
>>> ouch! Definitely a bug!!! I'll check.
>>>
>>>
>>> On Tue, Mar 29, 2011 at 11:03 AM, Yves NOEL <yves.n...@upmc.fr> 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
>>>> Jmol-users@lists.sourceforge.net
>>>> 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
>>>
>>
>>
>>
>> --
>> 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 
>> listJmol-users@lists.sourceforge.nethttps://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
>>
>>
>
>
> --
> 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
>
>
> ------------------------------------------------------------------------------
> Create and publish websites with WebMatrix
> Use the most popular FREE web apps or write code yourself;
> WebMatrix provides all the features you need to develop and
> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
>
>
> _______________________________________________
> Jmol-users mailing 
> listJmol-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
>
>
> ------------------------------------------------------------------------------
> Create and publish websites with WebMatrix
> Use the most popular FREE web apps or write code yourself;
> WebMatrix provides all the features you need to develop and
> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
>
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> 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
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to