in range(len(colors)):
cmd.color(colors[i],sym0+str(i)+*,quiet=0)
It should show 20 spheres, where 11 are colored the same and rest brown.
-- Jason
[PyMOL] Inexplicable exception raised by cmd.color()
From: Stuart Ballard srball...@wi... - 2009-08-26 23:32
Attachments: Message as HTML
Hello Warren, all,
When attempting to execute this block of code:
colors =
[red,orange,yellow,green,blue,purple,salmon,grey,pink,teal,brown]
for i in range(10):
cmd.color(colors[i], sym0 + str(i) + *)
The following error message is displayed:
Traceback (most recent call last):
], sym0 + str(i) + *)
except cmd.QuietException:
pass
Cheers,
Warren
From: Stuart Ballard [mailto:srball...@wisc.edu]
Sent: Wednesday, August 26, 2009 4:35 PM
To: pymol-users
Subject: [PyMOL] Inexplicable exception raised by cmd.color()
Hello