Jump to content

Get Title

From PyMOL Wiki
(Redirected from Cmd get title)

get_title retrieves a text string to the state of a particular object which will be displayed when the state is active. This is useful for printing the names of objects (given a state).

USAGE

[edit]
get_title object,state

PYMOL API

[edit]
 cmd.get_title(string object, int state)

Example

[edit]

Print out all the object names of the ensemble of states loaded in:

for x in range(numStates):
  print cmd.get_title("objName", x)