For camera interaction, you can add an observer to
vtkCommand::[InteractionEvent|StartInteractionEvent|EndInteractionEvent]
fired by vtkRenderWindowInteractor.
e.g.
def callback(caller, event):
print ("ineraction")
from paraview.vtk import vtkCommand
view = GetActiveView()
Hi!
How can I run a python script in every interaction?
By interaction I mean camera movements, hitting apply buttons and etc
I don't know if an approach like running the script every N frames is the
ideal, but if that's possible it would be a great start too
Best regards,
Leonardo Pessanha