Paul and Bob,

Got it.

Part of my confusion here is how archaic my code was - circa 2009:

scpt = 'set Picking OFF;set Picking ON;set BondPicking TRUE;set 
allowRotateSelected TRUE;unbind "LEFT-DRAG";bind "LEFT-DRAG" "quit;if (_X < 
250){select WITHIN(BRANCH,{atomno=rot2}, {atomno=rot1})} else {select 
WITHIN(BRANCH,{atomno=rot1}, {atomno=rot2})} rotateSelected {atomno=rot1} 
{atomno=rot2} @{_DELTAY}";hover off;';

I did not know about set picking rotatebond. I'm now using this much simpler 
approach.

Otis

Sent from my iPad



Sent from my iPad
> On Nov 12, 2015, at 10:07 PM, Paul PILLOT <paulpil...@gmail.com> wrote:
> 
> Otis,
> what Bob means is that the command « set picking rotatebond » by itself is 
> not broken. But it requires a key modifier + mouse drag combination to work. 
> What I did on my webpage (thanks to the code I saw on yours) is to as a bind 
> command as previously explained, so that no key modifier is required.
> Paul
> 
>> Le 12-11-2015 à 16:14, Otis Rothenberger <osrot...@chemagic.com> a écrit :
>> 
>> Bob,
>> 
>> I’m not seeing what your note suggests on Paul’s page. No modifier key is 
>> required from what I’m seeing. You give up model translation by doing this, 
>> but the point is to make it work on a touch pad. By unbinding default 
>> left-click and binding it to bond rotation, only click (or touch) drag is 
>> required to rotate the bond.
>> 
>> On my page, I try to make up for this with two buttons - Rotate Bond and 
>> Move. Between these two buttons, you have complete control of translate, 
>> rotate, and bond rotate without the use of modifier keys:
>> 
>> http://chemagic.com/molecules/mini.html
>> 
>> 
>> Otis
>> 
>> 
>> --
>> Otis Rothenberger
>> o...@chemagic.com
>> http://chemagic.com
>> 
>>> On Nov 12, 2015, at 3:55 PM, Robert Hanson <hans...@stolaf.edu> wrote:
>>> 
>>> It's working. But how it works is less than obvious. After clicking on a 
>>> bond such that the two highlighted atoms stay highlighted, move off past 
>>> the end you want to rotate, press SHIFT, and drag.
>>> 
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Jmol-users mailing list
>>> Jmol-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Jmol-users mailing list
>> Jmol-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users



------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to