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,
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview