Get Names: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 21: | Line 21: | ||
[[Cmd get_type]], [[Cmd count_atoms]], [[Cmd count_states]] | [[Cmd get_type]], [[Cmd count_atoms]], [[Cmd count_states]] | ||
[[Category:Commands| | [[Category:Commands|Get Names]] |
Revision as of 09:02, 20 June 2009
DESCRIPTION
get_names returns a list of object and/or selection names.
PYMOL API
cmd.get_names( [string: "objects"|"selections"|"all"] )
NOTES
The default behavior is to return only object names.
EXAMPLES
Multiple alignments
# structure align all proteins in PyMOL to the protein named "PROT". Effectively a
# poor multiple method for multiple structure alignment.
for x in cmd.get_names("*"): cealign( "PROT", x)