#290 initial zoom setting

v10
closed-fixed
Miguel
Applet (71)
5
2005-11-27
2005-02-04
friedar
No

I am starting to work with some unusual sizes of applets such as
800 x 300. This gives a very cinematic dimension which looks quite
spectacular, and is useful for animations of long skinny structures
such as peptides, particularly on a page with multiple applets.

The initial zoom setting is based on the smaller of the two
dimensions,so the default zoom appears tiny, and an initial zoom
of 5000, the maximum, is reqiured to fit the structure of window. It
would be great if there were a way to override/adjust the initial
zoom scale.

Frieda

Discussion

    • assigned_to: migueljmol --> egonw
    • status: open --> closed-invalid
     
  • Logged In: YES
    user_id=25678

    You can use the zoom command for that. See
    http://www.stolaf.edu/people/hansonr/jmol/docs/

    For the window ratio given above it should be:

    zoom 267

    (where 267 = 800/300)

    Egon

     
  • Logged In: YES
    user_id=25678

    Ummm... for clarity: 200 = 800/300 * 100% :)

     
  • Miguel
    Miguel
    2005-02-05

    • status: closed-invalid --> open-invalid
     
  • Miguel
    Miguel
    2005-02-05

    Logged In: YES
    user_id=1050060

    OK ... so how would you want to change things?

    Are you proposing that the default scaling be based upon the
    larger of the two dimensions instead of the smaller?

    Do you want a new argument to zoom?

     
  • friedar
    friedar
    2005-02-06

    Logged In: YES
    user_id=1190355

    Miguel said:
    >Are you proposing that the default scaling
    >be based upon the larger of the two
    >dimensions instead of the smaller?
    >Do you want a new argument to zoom?

    Well, I was thinking that either one would work. I didn't want to assume
    that all authors would use rectangular applets the way that I am now, but
    for my purposes, altering the default to scale to the larger of the two
    dimensions would answer very well. For authors that don't have this type
    of use in mind, and don't issue rotational commands that position the
    molecule to take advantage of the larger dimension, I suppose it might
    seem strange. So if altering the default is too pervasive then some sort
    of "set" command that would get Jmol to use the larger dimension would
    be fine.

     
  • friedar
    friedar
    2005-02-07

    • assigned_to: egonw --> migueljmol
     
  • friedar
    friedar
    2005-02-07

    Logged In: YES
    user_id=1190355

    I have found a way to work around the problem, but I am not sure it will
    be suitable in all cases.

    In the present case, the pdb file contains a large protein and I am
    focussing in on a relatively short section of it. If I edit the file to remove
    the rest of the protein, the default range of the zoom is much more
    appropriate. That is, I can obtain a good display using an initial zoom in
    the 400 range.

    However if I were interested in showing other sections of the protein
    later in the animation, this would not be a great solution. The applet
    would have to be reloaded with another truncated pdb file. I am not sure
    how often this is likely to arise.

    Miguel, I am not sure that you got my last comment so I changed the
    "assignment" pull-down back to your name, hope this was OK.

     
  • friedar
    friedar
    2005-02-22

    Logged In: YES
    user_id=1190355

    After having worked with the workaround (see previous post),
    I think that the better solution is to change the default scaling
    to be based opn the larger of the two dimensions of the applet,
    or this option should be made available for author specification.
    Thanks,
    Frieda

     
  • Miguel
    Miguel
    2005-11-27

    • status: open-invalid --> closed-fixed
     
  • Miguel
    Miguel
    2005-11-27

    Logged In: YES
    user_id=1050060

    fixed some time ago ... and this will be the default for the
    future.