Bob,

OK, I've narrowed it down to the bind command. There is a definite difference 
in behavior of the two referenced versions to this simple unbind/bind:

unbind;bind "ALT-LEFT" "select *;color red";

13.1.16_dev 2013.05.28d does the expected from past versions - A left click 
drag colors the model red.

13.3.6 does not unbind the default ALT-LEFT. It does however make a 
ALT-LEFT-CLICK change the color to red.

With bindings, LEFT meant a LEFT-DRAG. SINGLE and DOUBLE referred to clicks. 
Has this changed?

Otis

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




On Sep 11, 2013, at 11:02 PM, Otis Rothenberger wrote:

> Bob,
> 
> In the latest version of JSmol, a script that I use to do a clicked bond drag 
> conformation rotation no longer works:
> 
> set antialiasDisplay FALSE;set Picking OFF;set Picking ON;set BondPicking 
> TRUE;set allowRotateSelected TRUE;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}";hover off;
> 
> The last version where I'm sure it worked is 13.1.16_dev 2013.05.28d
> 
> It's broken in 13.3.6
> 
> The break might be in the pickCallback the sets the globals rot1 and rot2 for 
> the above drag/rotate
> 
> PickCallback(x, y, z) 
> .... Brace stuff that email may not like
> 
>  dataArr = y.split("#"); at1 = dataArr[1].substring(0,dataArr[1].indexOf(" 
> ")); at2 = dataArr[2].substring(0,dataArr[2].indexOf(" "));
>  scpt = "select *;color translucent;delay .1;color opaque; rot1=" + at1 + "; 
> rot2=" + at2 + ";";
>  Jmol.script(jmolApplet0, scpt);
> 
> .... Brace stuff that email may not like
> 
> A quick check with prompt(rot1) indicates that rot1 and rot2 are being set, 
> however.
> 
> Otis
> 
> --
> Otis Rothenberger
> [email protected]
> http://chemagic.com
> 
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> 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