Get Names: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
'''get_names''' returns a list of object and/or selection names. | '''get_names''' returns a list of object and/or selection names. | ||
===PYMOL API=== | ===PYMOL API=== | ||
<source lang="python"> | <source lang="python"> | ||
cmd.get_names( [string: "objects"|"selections"|"all"] ) | cmd.get_names( [string: "objects"|"selections"|"all"|"public_objects"|"public_selections"] ) | ||
</source> | </source> | ||
Line 15: | Line 14: | ||
# structure align all proteins in PyMOL to the protein named "PROT". Effectively a | # structure align all proteins in PyMOL to the protein named "PROT". Effectively a | ||
# poor multiple method for multiple structure alignment. | # poor multiple method for multiple structure alignment. | ||
for x in cmd.get_names(" | for x in cmd.get_names("all"): cealign( "PROT", x) | ||
</source> | </source> | ||
===SEE ALSO=== | ===SEE ALSO=== | ||
[[ | [[get_type]], [[count_atoms]], [[count_states]] | ||
[[Category:Commands|Get Names]] | [[Category:Commands|Get Names]] |
Revision as of 12:00, 29 November 2009
get_names returns a list of object and/or selection names.
PYMOL API
cmd.get_names( [string: "objects"|"selections"|"all"|"public_objects"|"public_selections"] )
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("all"): cealign( "PROT", x)