Hi,

first of all a lot of thanks to all of you for the help provided.


Hi,

http://chemapps.stolaf.edu/jmol/docs/?ver=12.0#setmisc

There is a command for rotation and translation each:

 set allowRotateSelected FALSE

    When set TRUE, this parameter allows user rotation of the molecule
    containing the selected atom using the mouse (holding ALT down while
dragging). The coordinates of the rotated molecule will be sightly degraded
    in this process.

 set dragSelected OFF

When ON, allows the user to move selected atoms by pressing ALT-SHIFT-LEFT and dragging; when combined with set pickingstyle DRAG, just LEFT-dragging
    moves the atoms, and the ALT and SHIFT keys are not required.

Best
Alex

I tried to use the commands suggested by Alex to solve my problem.

The line (.php program) below successfully loads 3 molecules into one jmolApplet, and after selecting one molecule, I can rotate it and translate it with ALT and ALT-SHIFT-LEFT respectively.

*jmolApplet(size=[$wwidth, $wheight], script='load $pdb1; select all; set ambient 45; wireframe 0.15; spacefill 20%; set bonds off; zoom 50; set allowRotateSelected TRUE; set dragSelected TRUE; load append $pdb2; load append $pdb3; frame *; display 1.1,2.1,3.1', 'cation');*

Variables are php-variable; $wwidth, $wheight are the dimensions of the jmol applet; and $pdb1, $pdb2, $pdb3 are the .pdb files to load.

But I still get some strange behavior of the jmol Applet that doesn't necessarily have to be caused by my script:

After opening the jmol menue (right mouse button), a small warning symbol appears to the right of the first menu entry ("all molecules") and subsequently the menu doesn not open again on klicking the right mouse button.

(jmol 12.0.39, java 1.6.0_25, Vista, FF 4.0 or Opera 10)

Any idea, why I can't open the menu again (e.g. to select another molecule to rotate)?

Is something syntactically wrong in the commands?


Reinhold

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to