Iterate State: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
===DESCRIPTION===
===DESCRIPTION===
'''iterate_state''' is to "alter_state" as "iterate" is to "alter".
  "iterate_state" is to "alter_state" as "iterate" is to "alter"
   
   
===USAGE===
===USAGE===
iterate_state state,(selection),expression
  iterate_state state,(selection),expression
 
===EXAMPLES===
===EXAMPLES===
<source lang="python">
  stored.sum_x = 0.0
stored.sum_x = 0.0
  iterate 1,(all),stored.sum_x = stored.sum_x + x
iterate 1,(all),stored.sum_x = stored.sum_x + x
</source>
 
===SEE ALSO===
===SEE ALSO===
[[Cmd iterate]], [[Cmd alter]], [[Cmd alter_state]]
  [[Cmd iterate]], [[Cmd alter]], [[Cmd alter_state]]


[[Category:Commands|iterate_state]]
[[Category:Commands|iterate_state]]

Revision as of 14:45, 10 January 2006

DESCRIPTION

iterate_state is to "alter_state" as "iterate" is to "alter".

USAGE

iterate_state state,(selection),expression

EXAMPLES

stored.sum_x = 0.0
iterate 1,(all),stored.sum_x = stored.sum_x + x

SEE ALSO

Cmd iterate, Cmd alter, Cmd alter_state