Difference between revisions of "Get Title"
Jump to navigation
Jump to search
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | ||
'''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). | '''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). | ||
Line 19: | Line 19: | ||
</source> | </source> | ||
− | [[Category:Commands| | + | [[Category:Commands|Get Title]] |
− | [[Category:States]] | + | [[Category:States|Get Title]] |
Revision as of 14:30, 17 November 2009
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
set_title object,state
PYMOL API
cmd.set_title(string object,int state,string text)
Example
Print out all the object names of the ensemble of states loaded in:
for x in range(numStates):
print cmd.get_title("objName", x)