This is a read-only mirror of pymolwiki.org

Set state order

From PyMOL Wiki
Revision as of 22:50, 21 April 2015 by Bell (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

set_state_order is an API only function to set the order of states for an object.

New in PyMOL 1.7.4

PyMOL API

cmd.set_state_order(str name, list order)

Arguments

  • name = str: object name
  • order = list of int: index array (1-based state indices)

Example

# reverse the order of a 20 model object
cmd.set_state_order('1nmr', range(20, 0, -1))