Get Title

From PyMOLWiki
Revision as of 13:30, 17 November 2009 by Inchoate (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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


set_title object,state


 cmd.set_title(string object,int state,string text)


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

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