[Paraview] Python paraview.simple: Zoom To Data?

Nico Schlömer nico.schloemer at gmail.com
Thu Mar 15 06:52:41 EDT 2012


Hi,

the ParaView GUI has this nifty little button action "Zoom To Data"
which displays the current object such that it somehow fits its
window.

Is there a similar thing for the Python paraview.simple module? I'm
trying to get a hang on it with certain view options such as

 view = pv.GetRenderView()
 view.CameraFocalPoint = [0, 0, 0]
 view.CameraViewAngle = 90
 view.CameraPosition = [0, 0, 10]
 view.ViewSize = [600, 600]

but what I would really like to have is to set the camera at a
distance such that the object(s) just fit into the window they're
displayed in.

Any hints?

Cheers,
Nico


More information about the ParaView mailing list