This is a read-only mirror of pymolwiki.org

Difference between revisions of "Set state order"

From PyMOL Wiki
Jump to navigation Jump to search
(created)
 
m (1 revision)
 
(No difference)

Latest revision as of 22:50, 21 April 2015

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