Skip to content

Python_UpdateBALLViewSceneWithPython

dstoeckel edited this page Mar 16, 2015 · 2 revisions

How can I visualize the results of my python script in the BALLView scene?

BALLView needs to be informed that its scene has changed. This can be done by updating the MainControl, giving the changed system as argument.

# get the first system of BALLViews structure window
system = getSystems()[0]

# change something in this system
...

# and trigger an update of the BALLView scene
getMainControl().update(system)
Clone this wiki locally