[Paraview] [Camera Control] - Clipping Range
Mariam
mbahameish at gmail.com
Sat Jul 15 17:20:06 EDT 2017
Thanks for your replies.
From: David E DeMarle <dave.demarle at kitware.com>
Date: Friday, July 7, 2017 at 7:57 PM
To: Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
Cc: Mariam <mbahameish at gmail.com>, ParaView <paraview at paraview.org>
Subject: Re: [Paraview] [Camera Control] - Clipping Range
Try LockBounds.
For example:
view = GetActiveView()
view.MaxClipBounds = [x0,x1,y0,y1,z0,z1]
view.LockBounds = 1
David E DeMarle
Kitware, Inc.
Principal Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
On Fri, Jul 7, 2017 at 2:51 PM, Utkarsh Ayachit <utkarsh.ayachit at kitware.com> wrote:
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
_______________________________________________
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/20170715/a41e63c0/attachment.html>
More information about the ParaView
mailing list