Scripts: lightsout.py

File lightsout.py, 225 bytes (added by goddard, 17 years ago)
Line 
1def light_surfaces(onoff):
2 import chimera, _surface
3 mlist = chimera.openModels.list(modelTypes = [_surface.SurfaceModel])
4 for m in mlist:
5 for g in m.surfacePieces:
6 g.useLighting = onoff
7
8light_surfaces(False)