Jump to content

Set state order

From PyMOL Wiki

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

[edit]
cmd.set_state_order(str name, list order)

Arguments

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

Example

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