This is a read-only mirror of pymolwiki.org

Difference between revisions of "Count States"

From PyMOL Wiki
Jump to navigation Jump to search
 
m (5 revisions)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
===DESCRIPTION===
+
 
    "count_states" is an API-only function which returns the number of
+
'''count_states''' is an API-only function which returns the number of states in the selection.
  states in the selection.
+
 
 
 
===PYMOL API===
 
===PYMOL API===
<source lang="python">
+
<source lang="python">
  cmd.count_states(string selection="(all)")
+
cmd.count_states(string selection="(all)")
</source>
+
</source>
 +
 
 
===SEE ALSO===
 
===SEE ALSO===
+
[[Frame]]
  [[Cmd frame]]
 
  
[[Category:Commands|count_states]]
+
[[Category:Commands|Count States]]
 +
[[Category:Ensembles|Count States]]

Latest revision as of 01:43, 28 March 2014

count_states is an API-only function which returns the number of states in the selection.

PYMOL API

cmd.count_states(string selection="(all)")

SEE ALSO

Frame