[Chimera-users] Volume surface colors

Will Moore will at lifesci.dundee.ac.uk
Mon Mar 15 06:11:26 PDT 2010


  I'm trying to write a script to change the surface colors of volumes  
in Chimera:

This is what I have so far.

for m in chimera.openModels.list():
	print m.surface_colors
	m.surface_colors = [(1.0, 0.0, 0.0, 1.0)]
	print m.surface_colors

This seems to alter the surface colors, but has no effect on what the  
maps look like in the UI.
Do I need to call something else for the UI to be updated, or am I  
using the wrong approach entirely?

Also, I would like to only select the volumes in the first line but I  
don't know what modelTypes this is:
for m in chimera.openModels.list(modelTypes=[chimera.Molecule]):

Many thanks,


William Moore
Wellcome Trust Centre for Gene Regulation & Expression
College of Life Sciences
University of Dundee
Dow Street
Dundee  DD1 5EH
United Kingdom

Phone 01382 386364

More information about the Chimera-users mailing list