User Tools

Site Tools


api:cmd:index

cmd.index

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

Parameters

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



om indices are fragile and will change as atoms are added
 deleted.  Whenever possible, use integral atom identifiers
stead of indices.

    

Implementation

def index(selection="(all)",quiet=1):

See Also

api/cmd/index.txt · Last modified: 2013/08/19 21:01 (external edit)