Skip to content

Python_UpdateBALLViewSceneWithPython

Daniel Stoeckel edited this page Feb 20, 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.

{{{ #!python

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