Index

From PyMOLWiki
Jump to navigation Jump to search
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.

index returns a list of tuples corresponding to the object name and index of the atoms in the selection.

PYMOL API

list = cmd.index(string selection="(all)")

NOTE

Atom indices are fragile and will change as atoms are added or deleted. Whenever possible, use integral atom identifiers instead of indices.