Get Extent: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
===DESCRIPTION===
 
'''get_extent''' returns the minimum and maximum XYZ coordinates of a selection as an array:
'''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 ]]
<pre>[ [ min-X , min-Y , min-Z ],[ max-X, max-Y , max-Z ]]</pre>
 
Typing this command returns the coordinates for all atoms. To return the coordinates of the default selection type:
 
<pre>get_extent sele</pre>


===PYMOL API===
===PYMOL API===
Line 8: Line 12:
</source>
</source>


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

Latest revision as of 13:30, 17 November 2009

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 )