File: transp.py

package info (click to toggle)
openstructure 2.11.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 206,240 kB
  • sloc: cpp: 188,571; python: 36,686; ansic: 34,298; fortran: 3,275; sh: 312; xml: 146; makefile: 29
file content (13 lines) | stat: -rw-r--r-- 406 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
e=io.LoadPDB("../demos/data/sh2.pdb")
s=io.LoadSurface("../demos/data/sh2","msms")

scene.Add(gfx.Entity("x",gfx.HSC,e.Select("chain=A")))
scene["x"].SetColor(gfx.Color(0.9,0.95,1.0))
scene["x"].SetColor(gfx.Color(1.0,0.9,0.7),"rtype=helix")
scene["x"].SetColor(gfx.Color(0.5,1.0,0.7),"rtype=strand")

scene.Add(gfx.Surface("s",s))
scene["s"].SetOpacity(0.4)
scene["s"].SetMat(0,1,0,0)

scene.bg=gfx.WHITE