This is a read-only mirror of pymolwiki.org
Difference between revisions of "Get Extent"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
===DESCRIPTION=== | ===DESCRIPTION=== | ||
− | + | '''get_extent''' returns the minimum and maximum XYZ coordinates of a selection as an array: | |
− | + | <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=== | ||
− | + | <source lang="python"> | |
− | + | cmd.get_extent(string selection="(all)", state=0 ) | |
− | + | </source> | |
[[Category:Commands|get_extent]] | [[Category:Commands|get_extent]] | ||
+ | [[Category:States]] |
Revision as of 21:49, 10 March 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 )