[Jmol-users] Rotate Selected

2013-02-20 Thread Otis Rothenberger
Bob,

To set up rotation of selected models on an iPad, I have to bind LEFT to the 
rotation so that I can eliminate the need for a modifier key. I'm using the 
following binding:

bind LEFT rotateSelected Y @{_DELTAX*2};rotateSelected X @{_DELTAY*2}

No matter what I use as a multiplier, I'm getting sluggish/clunky rotation - 
some multipliers better than others.

Do you have any suggestions for smoother rotation?

Otis

--
Otis Rothenberger
o...@chemagic.com
http://chemagic.com







--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Rotate Selected

2013-02-20 Thread Robert Hanson
why isn't it just

bind LEFT _rotateSelected

?


On Wed, Feb 20, 2013 at 9:46 AM, Otis Rothenberger osrot...@chemagic.comwrote:

 Bob,

 To set up rotation of selected models on an iPad, I have to bind LEFT to
 the rotation so that I can eliminate the need for a modifier key. I'm using
 the following binding:

 bind LEFT rotateSelected Y @{_DELTAX*2};rotateSelected X @{_DELTAY*2}

 No matter what I use as a multiplier, I'm getting sluggish/clunky rotation
 - some multipliers better than others.

 Do you have any suggestions for smoother rotation?

 Otis

 --
 Otis Rothenberger
 o...@chemagic.com
 http://chemagic.com








 --
 Everyone hates slow websites. So do we.
 Make your web apps faster with AppDynamics
 Download AppDynamics Lite for free today:
 http://p.sf.net/sfu/appdyn_d2d_feb
 ___
 Jmol-users mailing list
 Jmol-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jmol-users




-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
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
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


[Jmol-users] figured out my own layout question

2013-02-20 Thread Jennifer L. Muzyka
If you go visit those URLs I just gave in a previous post, you'll see I figured 
out the answer to my own question.  I'm excited to finally have a chance to 
learn to use JSmol.  Thanks for the JavaScript version of my favorite app, Bob 
and others who worked on this conversion.  I appreciate your efforts!
Jennifer








Jennifer L. Muzyka
Professor of Chemistry
Centre College
600 West Walnut Street
Danville, KY  40422

jennifer.muz...@centre.edu
http://web.centre.edu/muzyka/




--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] issues with converting to jsmol

2013-02-20 Thread Robert Hanson
Firefox, MSIE, and Chrome all look great. Doesn't mean that other browsers
will behave, of course.

Did you fix it? If not, it's probably a Safari issue. That's odd.


Bob


On Wed, Feb 20, 2013 at 3:24 PM, Jennifer L. Muzyka 
jennifer.muz...@centre.edu wrote:

 I'm working on converting pages from Jmol to JSmol and am seeing a strange
 and mysterious phenomenon, with the structures showing up in a different
 part of the page than what I expect based on the coding.  I'm using
 Bootstrap to handle the layout, in case that's relevant.

 Here's the Jmol version of the page, so you can see the layout I'm aiming
 for:  http://web.centre.edu/muzyka/organic/jmol/tutorials/butanes.htm.
  The JSmol version of the page is
 http://web.centre.edu/muzyka/organic/jsmol/butanes.htm.

 I would appreciate any insights anybody can offer about why the structures
 don't show up in the places where I expected them.  Thanks.
 Jennifer







 Jennifer L. Muzyka
 Professor of Chemistry
 Centre College
 600 West Walnut Street
 Danville, KY  40422

 jennifer.muz...@centre.edu
 http://web.centre.edu/muzyka/





 --
 Everyone hates slow websites. So do we.
 Make your web apps faster with AppDynamics
 Download AppDynamics Lite for free today:
 http://p.sf.net/sfu/appdyn_d2d_feb
 ___
 Jmol-users mailing list
 Jmol-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jmol-users




-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
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
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] figured out my own layout question

2013-02-20 Thread Robert Hanson
ah, there it is! Good. The load is quite fast, too. Maybe at least as fast
as Java.

By the way, this is a great idea, Jennifer:

function jmolCheckbox(script1, script0,text,ischecked)
{Jmol.jmolCheckbox(jmolApplet0,script1, script0, text,
ischecked)}function jmolButton0(script, text)
{Jmol.jmolButton(jmolApplet0, script,text)}function
jmolButton1(script, text) {Jmol.jmolButton(jmolApplet1,
script,text)}function jmolButton2(script, text)
{Jmol.jmolButton(jmolApplet2, script,text)}function
jmolButton3(script, text) {Jmol.jmolButton(jmolApplet3,
script,text)}function jmolHtml(s) { document.write(s) };function
jmolBr() { jmolHtml(br /) }function jmolMenu(a)
{Jmol.jmolMenu(jmolApplet0, a)}


right, just use your old pages with this sort of little adaptation.
Pretty sure you can remove this line:


script src=../Jmol.js
view-source:http://web.centre.edu/muzyka/organic/Jmol.js
type=text/javascript/script

(in fact, that must be pointing to nothing, or this wouldn't work, would it?)




On Wed, Feb 20, 2013 at 3:40 PM, Jennifer L. Muzyka 
jennifer.muz...@centre.edu wrote:

 If you go visit those URLs I just gave in a previous post, you'll see I
 figured out the answer to my own question.  I'm excited to finally have a
 chance to learn to use JSmol.  Thanks for the JavaScript version of my
 favorite app, Bob and others who worked on this conversion.  I appreciate
 your efforts!
 Jennifer








 Jennifer L. Muzyka
 Professor of Chemistry
 Centre College
 600 West Walnut Street
 Danville, KY  40422

 jennifer.muz...@centre.edu
 http://web.centre.edu/muzyka/





 --
 Everyone hates slow websites. So do we.
 Make your web apps faster with AppDynamics
 Download AppDynamics Lite for free today:
 http://p.sf.net/sfu/appdyn_d2d_feb
 ___
 Jmol-users mailing list
 Jmol-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jmol-users




-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
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
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Rotate Selected

2013-02-20 Thread Otis Rothenberger
Bob,

I tried that, and it works with mouse control on my desktop, but the iPad has a 
problem.

For the desktop/mouse, I can bind _rotateSelected to LEFT, and pick up the 
click/select of a model with a hover call back. Binding LEFT to _rotateSelected 
evidently loses the original click select of rotate selected. This is all OK. 
One way or another, this all works for the desktop/mouse.

On the iPad, I have no hover. I only have LEFT for binding. Consequently, I 
select models sequentially with a link. This is no more clumsy than pressing 
the CTRL key while dragging. If I bind _rotateSelected, grabbing the selected 
model by an atom on an iPad is really clumsy.

On the other hand, if I bind with the script of my previous note, dragging 
anywhere (atom or background) nicely rotates the selected model. A multiplier 
of 1.5 is not too bad. I'll go with that for now.

Part of this drives me nuts. I was not the major pusher of iPad compatibility 
on the ISU VMK. That was my colleague, Tom. But now that I've done it, people 
who have ignored the virtual model kit previously are suddenly excited about it.

Otis

--
Otis Rothenberger
o...@chemagic.com
http://chemagic.com




On Feb 20, 2013, at 4:20 PM, Robert Hanson wrote:

 why isn't it just
 
 bind LEFT _rotateSelected
 
 ?
 
 
 On Wed, Feb 20, 2013 at 9:46 AM, Otis Rothenberger osrot...@chemagic.com 
 wrote:
 Bob,
 
 To set up rotation of selected models on an iPad, I have to bind LEFT to 
 the rotation so that I can eliminate the need for a modifier key. I'm using 
 the following binding:
 
 bind LEFT rotateSelected Y @{_DELTAX*2};rotateSelected X @{_DELTAY*2}
 
 No matter what I use as a multiplier, I'm getting sluggish/clunky rotation - 
 some multipliers better than others.
 
 Do you have any suggestions for smoother rotation?
 
 Otis
 
 --
 Otis Rothenberger
 o...@chemagic.com
 http://chemagic.com
 
 
 
 
 
 
 
 --
 Everyone hates slow websites. So do we.
 Make your web apps faster with AppDynamics
 Download AppDynamics Lite for free today:
 http://p.sf.net/sfu/appdyn_d2d_feb
 ___
 Jmol-users mailing list
 Jmol-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jmol-users
 
 
 
 -- 
 Robert M. Hanson
 Larson-Anderson Professor of Chemistry
 Chair, Chemistry Department
 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
 
 --
 Everyone hates slow websites. So do we.
 Make your web apps faster with AppDynamics
 Download AppDynamics Lite for free today:
 http://p.sf.net/sfu/appdyn_d2d_feb___
 Jmol-users mailing list
 Jmol-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jmol-users

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users