This is a read-only mirror of

Get Extent

From PyMOL Wiki
Revision as of 01:46, 28 March 2014 by Pyadmin (talk | contribs) (6 revisions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

get_extent returns the minimum and maximum XYZ coordinates of a selection as an array:

[ [ min-X , min-Y , min-Z ],[ max-X, max-Y , max-Z ]]

Typing this command returns the coordinates for all atoms. To return the coordinates of the default selection type:

get_extent sele


cmd.get_extent(string selection="(all)", state=0 )