Jump to content

Get Extent: Difference between revisions

From PyMOL Wiki
Cank (talk | contribs)
No edit summary
Vinnyrose (talk | contribs)
mNo edit summary
Line 12: Line 12:
</source>
</source>


[[Category:Commands|get_extent]]
[[Category:Commands|Get Extent]]
[[Category:States]]
[[Category:States|Get Extent]]

Revision as of 13:59, 20 June 2009

DESCRIPTION

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

PYMOL API

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