Index: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
===DESCRIPTION===
 
'''index''' returns a list of tuples corresponding to the object name and index of the atoms in the selection.
'''index''' returns a list of tuples corresponding to the object name and index of the atoms in the selection.


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


[[Category:Commands|index]]
[[Category:Commands|Index]]

Latest revision as of 13:37, 17 November 2009

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.