Set state order

From PyMOLWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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))