Bob,

I don't mean to be dense about this, but I'm missing something. I'll try it by 
the numbers:

1) In the past, bind LEFT bound LEFT-DRAG
2) In the past, bind SINGLE bound LEFT-CLICK

If bind LEFT now means bind LEFT-CLICK, then two bindings do the same thing - 
i.e. bind LEFT-CLICK.

Item one above goes back years in Jmol behavior, and it was part of the scheme 
of things until at least 13.1.16_dev 2013.05.28d.

I'm not smart enough to come up with something like:

unbind "LEFT"; bind "LEFT" "select WITHIN(BRANCH,{atomno=rot1}, {atomno=rot2}); 
if (_X < 250){select WITHIN(BRANCH,{atomno=rot2}, {atomno=rot1});} 
rotateSelected {atomno=rot1} {atomno=rot2} @{_DELTAY}";

on my own. I'm pretty sure that you pointed me in that direction years ago, 
albeit in the context of ALT modified LEFT-CLICK-DRAG. OK, part of the above is 
mine, but the rotateSelected {atomno=rot1} {atomno=rot2} @{_DELTAY}" bound to 
ALT-LEFT (for drag) is definitely at your suggestion. And it worked beautifully.

Otis

--
Otis Rothenberger
[email protected]
http://chemagic.com




On Sep 12, 2013, at 6:52 PM, Robert Hanson wrote:

> I'll see what I can do to implement LEFT-DRAG binding
> 
> 
> On Thu, Sep 12, 2013 at 5:44 PM, Otis Rothenberger <[email protected]> 
> wrote:
> Bob,
> 
> OK, now you have me worried! Some variation of this has been working for 
> years (Java applet and JSmol):
> 
> unbind "LEFT"; bind "LEFT" "select WITHIN(BRANCH,{atomno=rot1}, 
> {atomno=rot2}); if (_X < 250){select WITHIN(BRANCH,{atomno=rot2}, 
> {atomno=rot1});} rotateSelected {atomno=rot1} {atomno=rot2} @{_DELTAY}";
> 
> rot1 and rot2 are atomno's set by a bond click.
> 
> See http://chemagic.com/JSmolVMK.htm
> 
> Move button - then Conformation Rotation Method.
> 
> This page is running 13.1.16_dev 2013.05.28d, but this was SOP for versions 
> before this. I've used it with and without ALT in the past. In this case, 
> there is no ALT because we were making it work on an iPad.
> 
> Otis
> 
> 
> --
> Otis Rothenberger
> [email protected]
> http://chemagic.com
> 
> 
> 
> 
> On Sep 12, 2013, at 6:25 PM, Robert Hanson wrote:
> 
>> that's a good question. So you want a script to fire every pixel of a drag??
>> 
>> 
>> On Thu, Sep 12, 2013 at 4:39 PM, Otis Rothenberger <[email protected]> 
>> wrote:
>> Bob,
>> 
>> Binding ALT-LEFT is firing on ALT-LEFT-CLICK. If I said just LEFT-CLICK, I 
>> meant ALT-LEFT-CLICK.
>> 
>> Having said that, up to and including 13.1.16_dev 2013.05.28d, binding LEFT 
>> (alt or not) bound LEFT-DRAG (with ALT if so bound). Binding SINGLE and 
>> DOUBLE bound simple clicks. I'm OK with whatever, but if binding LEFT now 
>> means binding the click only, how do you bind a click-drag?
>> 
>> Otis
>> 
>> --
>> Otis Rothenberger
>> [email protected]
>> http://chemagic.com
>> 
>> 
>> 
>> 
>> On Sep 12, 2013, at 3:50 PM, Robert Hanson wrote:
>> 
>>> It's possible. I did some work on that recently. Why would ALT-LEFT have 
>>> activated with left-click? Does sound like there was a bug there. I believe 
>>> the current behavior is correct. "LEFT" should mean "left-click" not 
>>> "left-drag"
>>> 
>>> ------------------------------------------------------------------------------
>>> How ServiceNow helps IT people transform IT departments:
>>> 1. Consolidate legacy IT systems to a single system of record for IT
>>> 2. Standardize and globalize service processes across IT
>>> 3. Implement zero-touch automation to replace manual, redundant tasks
>>> http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk_______________________________________________
>>> Jmol-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>> 
>> 
>> ------------------------------------------------------------------------------
>> How ServiceNow helps IT people transform IT departments:
>> 1. Consolidate legacy IT systems to a single system of record for IT
>> 2. Standardize and globalize service processes across IT
>> 3. Implement zero-touch automation to replace manual, redundant tasks
>> http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>> 
>> 
>> 
>> 
>> -- 
>> Robert M. Hanson
>> Larson-Anderson Professor of Chemistry
>> 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
>> 
>> ------------------------------------------------------------------------------
>> How ServiceNow helps IT people transform IT departments:
>> 1. Consolidate legacy IT systems to a single system of record for IT
>> 2. Standardize and globalize service processes across IT
>> 3. Implement zero-touch automation to replace manual, redundant tasks
>> http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk_______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
> 
> 
> ------------------------------------------------------------------------------
> How ServiceNow helps IT people transform IT departments:
> 1. Consolidate legacy IT systems to a single system of record for IT
> 2. Standardize and globalize service processes across IT
> 3. Implement zero-touch automation to replace manual, redundant tasks
> http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
> 
> 
> 
> 
> -- 
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> 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
> 
> ------------------------------------------------------------------------------
> How ServiceNow helps IT people transform IT departments:
> 1. Consolidate legacy IT systems to a single system of record for IT
> 2. Standardize and globalize service processes across IT
> 3. Implement zero-touch automation to replace manual, redundant tasks
> http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk_______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to