File: gfx_selection.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 (10 lines) | stat: -rw-r--r-- 292 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
eh=io.LoadEntity("fragment.pdb")
go=gfx.Entity("test",eh.CreateFullView())
ev = eh.Select(mol.Query("rnum=2,3,8,13"))
go.SetSelection(ev)
go.SetRenderMode(gfx.RenderMode.CUSTOM)
go.SetColor(gfx.YELLOW,"(ele=C and rnum=1:4)")
scene.Add(go)
scene.SetCenter(go.GetCenter())

scene.AutoslabMax()