Eric,
print getProperty("orientationInfo.zoom")
See also
print getProperty("orientationInfo")
So, for example, you could divide the zoom in half and not change anything
else by:
var x = getProperty("orientationInfo.moveto").split(" ")
x[8] = x[8]/2
script inline @{x.join(" ")}
// get an array of all the moveto parts
// divide the zoom setting by 2
// combine the parts and run that new moveto command.
Bob
On Sun, Nov 8, 2009 at 1:31 PM, Eric Martz <[email protected]>wrote:
> Is there a Jmol math variable (I would have expected _zoom) that has
> the current zoom percentage value in a form that can be used directly
> in math and zoom commands? For example
>
>
> if (_zoom != 350)
> ...
>
> or
>
> zoomDelta = 350 - _zoom
> ...
>
> For Molecular Playground, I cannot use zoomTo because we want people
> to be able to rotate the molecule with their hand during a zoom, and
> zoomTo "fights" with user initiated rotations.
>
> Thanks, -Eric
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107
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
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users