This is a read-only mirror of pymolwiki.org
Difference between revisions of "Get Title"
Jump to navigation
Jump to search
m |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | ==DESCRIPTION== | |
− | + | '''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). | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | [[Category:Commands| | + | ==USAGE== |
+ | <source lang="python"> | ||
+ | set_title object,state | ||
+ | </source> | ||
+ | |||
+ | ==PYMOL API== | ||
+ | <source lang="python"> | ||
+ | cmd.set_title(string object,int state,string text) | ||
+ | </source> | ||
+ | |||
+ | == Example == | ||
+ | Print out all the object names of the ensemble of states loaded in: | ||
+ | <source lang="python"> | ||
+ | for x in range(numStates): | ||
+ | print cmd.get_title("objName", x) | ||
+ | </source> | ||
+ | |||
+ | [[Category:Commands|Get Title]] | ||
+ | [[Category:States|Get Title]] |
Revision as of 14:03, 20 June 2009
DESCRIPTION
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)