[Paraview] [Camera Control] - Clipping Range

Mariam mbahameish at gmail.com
Fri Jul 7 14:44:50 EDT 2017


Hi,

I am trying to control the camera attributes from pvpython, I noticed that if I modified Clipping Range & Thickness then called Render() the values are reset to the original values. However, changes in camera position, focal point, view up and viewing angle take effect after Render().

 

Here is a snippet of the code:

from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()

sphere = Sphere()
Show()
Render()

camera = GetActiveCamera()
camera.GetFocalPoint()
(0.0, 0.0, 0.0)

camera.GetPosition()
(0.0, 0.0, 6.69)

camera.GetClippingRange()
(5.628100000000001, 8.042850000000001)

camera.SetPosition(0,0,3)
Render()


camera.GetPosition()
(0.0, 0.0, 3.0)


camera.GetClippingRange()
(1.975, 4.2975)

camera.SetClippingRange(3,8)
camera.GetClippingRange()
(3.0, 8.0)

Render()

camera.GetClippingRange()
(1.975, 4.2975)

 

 

How can I force changes on Clipping Range & Thickness values?

 

Regards,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170707/eb326cb4/attachment.html>


More information about the ParaView mailing list