This is a read-only mirror of pymolwiki.org

Index

From PyMOL Wiki
Revision as of 01:47, 28 March 2014 by Pyadmin (talk | contribs) (5 revisions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.