Jump to content

Get Names: Difference between revisions

From PyMOL Wiki
m moved Get Names of Type to Get Names over redirect
see also get_names_of_type
Line 18: Line 18:


===SEE ALSO===
===SEE ALSO===
[[get_type]], [[count_atoms]], [[count_states]]
[[get_type]], [[get_names_of_type]], [[count_atoms]], [[count_states]]


[[Category:Commands|Get Names]]
[[Category:Commands|Get Names]]

Revision as of 11:48, 2 March 2012

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)

SEE ALSO

get_type, get_names_of_type, count_atoms, count_states