Dear user-group,

  I'm trying to learn how to use python commands inside pymol .pml scripts.  I seem to be missing some understanding about how the interface works.  Could somebody tell me how to fix this command below?


PyMOL>for x in range(10): cmd.label("(name ca and resi %d)" % x, "%s%s"

PyMOL>% (resi, resn))

Traceback (most recent call last):

  File "/usr/local/pymol/modules/pymol/", line 232, in parse


  File "<string>", line 1, in ?

NameError: name 'resi' is not defined


thanks much!!




Louis Clark, Ph.D.