-
Notifications
You must be signed in to change notification settings - Fork 32
Python_RemoveWater
dstoeckel edited this page Mar 16, 2015
·
2 revisions
#!/usr/bin/python
system = getSystems()[0]
sel = Selector("residue(HOH)")
system.apply(sel)
system.removeSelected()
getMainControl().update(system)
The example is intended for usage within BALLView. It contains two lines that will only work within BALLView
- system = getSystems()![0] gets the first system in the Structures-widget of BALLView.
- getMainControl().update(system) triggers an updated of BALLView's scene. Without this line the change will not be visible.