Shows how to display one entity with several render modes at once. The sidechains are displayed simple mode, whereas the backbone is displayed with smooth lines.
4 ent = io.LoadPDB(
'data/sdh.pdb', restrict_chains=
'A')
7 go = gfx.Entity(
'SDH', ent)
9 go.SetRenderMode(gfx.SLINE)
11 sidechains = ent.Select(
'aname!=CA,C,N,O', mol.EXCLUSIVE_BONDS)
13 go.SetRenderMode(gfx.SIMPLE, sidechains)
21 print(
'Demo 1: loading and displaying a pdb file')