|
From: Clark, L. <Lou...@co...> - 2007-07-04 19:01:46
|
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?
=20
PyMOL>for x in range(10): cmd.label("(name ca and resi %d)" % x, "%s%s"=20
PyMOL>% (resi, resn))
Traceback (most recent call last):
File "/usr/local/pymol/modules/pymol/parser.py", line 232, in parse
exec(com2[nest]+"\n",pymol_names,pymol_names)
File "<string>", line 1, in ?
NameError: name 'resi' is not defined
=20
thanks much!!
=20
-Louis
=20
Louis Clark, Ph.D.
lou...@co... <mailto:lou...@co...>=20
=20
|