[Paraview] [Camera Control] - Clipping Range

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Fri Jul 7 14:51:47 EDT 2017


Currently, you can't. ParaView doesn't let user change ClippingRange. It
resets it internally before each render.

On Fri, Jul 7, 2017 at 2:44 PM, Mariam <mbahameish at gmail.com> wrote:

> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170707/56361d19/attachment.html>


More information about the ParaView mailing list