It's on the agenda for post-10.1. It will probably be:
zoom (selected)
zoom (not protein and not solvent)
etc.
But this is trickier than you might think because of the way perspective
depth is handled. Thus, to work the way you expect, this command might
require
set perspectiveDepth OFF
There are all sorts of issues here.
What if someone says the following?
zoom (atomno=30)
Do we see one big dot?
Is there some sort of maximum zoom just for this command?
Does it recenter the model in the window at the center of that group?
Should it the center of rotation as well?
My point is just that we know that it's tricky. Right now you can do
something like this with "moveTo" MoveTo is actually very nice, because
it provides a smooth transition to the desired orientation, including
zoom. So in many ways, this is already way better than we could provide
with just a "zoom (selected)" command. But it's not trivial to set up.
When I use moveTo with applets I do the following:
1) Find the orientation and zoom I like.
2) Use "show orientation" to get the moveTo command that gives this
orientation, for example:
moveto 1 145 596 790 132.0;
(If I don't have my page set up to display callback messages, I get this
message from the "java console".)
3) Change that first number to be the number of seconds I want the
smooth transition to last.
Obviously I'm working with the applet here. This method is only good for
when you are scripting something very specific -- when you want the user
to zoom to something you already have in mind -- a certain porphyrin or
a certain cofactor, for example.
If "moveTo" does the trick for you, Kevin, let us know.
Bob
Kevin Parkes wrote:
Hi,
Thinking a bit more about this over the weekend I was wondering if it
was possible in some way to "zoom selected". An example of what I have
in mind would be a protein which contains a inhibitor, co-factor. What
would be nice is to be able to select the ligand or other substructure
of interest and then zoom to whatever level was necessary to make it
fill the screen - is that possible?
Kevin Parkes
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users