Get Names
Revision as of 14:14, 1 March 2012 by Harijay (talk | contribs) (moved Get Names to Get Names of Type)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
get_names_of_type returns a list of object and/or selection names.
PYMOL API
cmd.get_names_of_type( [string: "type"] )
NOTES
The object types are strings such as "object:molecule" for a molecule type and "object:map" for a map.
EXAMPLES
Truncate names of all molecules
# Get names for all molecules.
for x in cmd.get_names_of_type("object:molecule"): cmd.set_name(x,x[:5])