Hi Thomas, You need mod.show() to have the density map recompute its contour surface. You can remove the mod.display = True line. Your code mod.surface_levels = [-1,0] is setting two contour levels one at density value -1 and one at 0. Is that what you intend? If you only wanted a single level you would use mod.surface_levels = [-1] Tom On Dec 27, 2013, at 3:24 PM, Thomas Hrabe wrote:
Hi everyone,
I have this line of code where I want to load a density and export a negative surface of it:
import chimera as ch mod = ch.openModels.open(‘./density.em')[0] mod.surface_levels = [-1,0] mod.display = True ch.exports.doExportCommand('WebGL', 'tmp.html’)
However, the surface of the density is rendered for positive values. How can I refresh the display after I specify the surface_levels?
Thanks, Thomas
_______________________________________________ Chimera-users mailing list Chimera-users@cgl.ucsf.edu http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users