Set state order

From PyMOLWiki
Revision as of 23:10, 20 February 2015 by Speleo3 (talk | contribs) (created)
(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))