I'm sorry. That should be CTRL-LEFT, as per the code. I have to remember
to check which hand has the scar!
Otis
On 4/15/2010 8:19 AM, Otis Rothenberger wrote:
Jeff and Jonathan-
Here's a Mac fix, I hope!
First, I forgot. There is a WHEEL direction feedback. That allows this
to be a bit more compact:
Mac (without wheel): After defining the two atoms with the set
rotation link, CTRL-RIGHT will rotate the moving group. Remember, the
first clicked atom is the anchor.
For a WHEEL mouse: The above will work, or you can use CTRL-WHEEL
Because I can get direction feedback in both cases, both directions of
rotation are possible with each mouse action - (WHEEL forward/backward
or MOUSE +Y/-Y)
I'm stepping on a the Jmol CTR-RIGHT for pop menu, but CTRL-LEFT also
brings up the menu.
The code for this is pretty simple. Recently, Bob posted a note on
Jmol global variables, and understanding global variables makes this
task pretty easy. In the load script, two global variables are
defined, rot1 and rot2. That allows the following global binding:
unbind 'CTRL-LEFT'; bind 'CTRL-LEFT' 'select WITHIN(BRANCH,{atomIndex
= rot1}, {atomIndex = rot2});rotateSelected {atomIndex = rot1}
{atomIndex = rot2} @{_DELTAY*1};'
The select rotation link simply needs to puts atomIndex numbers into
rot1 and rot2 prior to the rotation. There may be slicker ways to fill
rot1 and rot prior to rotation. I'm open to suggestions.
I still have not put this on chemagic. It's at:
http://www.che.ilstu.edu/osrothen/web_molecules/script_page_large.aspx
Best, Otis
--
Otis Rothenberger
chemagic.com
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users