<div dir="ltr">Currently, you can't. ParaView doesn't let user change ClippingRange. It resets it internally before each render.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 7, 2017 at 2:44 PM, Mariam <span dir="ltr"><<a href="mailto:mbahameish@gmail.com" target="_blank">mbahameish@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="white" lang="EN-US" link="#0563C1" vlink="#954F72"><div class="m_-6080538412820277852WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt">Hi,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt">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().<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt">Here is a snippet of the code:<u></u><u></u></span></p><p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Courier New"">from </span></b><span style="font-size:9.0pt;font-family:"Courier New"">paraview.simple <b>import </b>*<br>paraview.simple._<wbr>DisableFirstRenderCameraReset(<wbr>)<br><br>sphere = Sphere()<br>Show()<br>Render()<br><br>camera = GetActiveCamera()<br>camera.GetFocalPoint()<br>(0.0, 0.0, 0.0)<br><br>camera.GetPosition()<br>(0.0, 0.0, 6.69)<br><br>camera.GetClippingRange()<br>(5.628100000000001, 8.042850000000001)<br><br>camera.SetPosition(0,0,3)<br>Render()<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New""><br>camera.GetPosition()<br>(0.0, 0.0, 3.0)<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New""><br>camera.GetClippingRange()<br>(1.975, 4.2975)<br><br>camera.SetClippingRange(3,8)<br>camera.GetClippingRange()<br>(3.0, 8.0)<br><br>Render()<br><br><b>camera.GetClippingRange()<br>(1.975, 4.2975)</b><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt">How can I force changes on Clipping Range & Thickness values?<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt">Regards,<u></u><u></u></span></p></div></div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/<wbr>ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>