[Chimera-users] Reset surface programatically from python

Thomas Hrabe thrabe at sanfordburnham.org
Fri Dec 27 15:24:08 PST 2013


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




More information about the Chimera-users mailing list