<div dir="ltr"><div>Try LockBounds.</div><div><br></div><div>For example:</div><div>view = GetActiveView()</div>view.MaxClipBounds = [x0,x1,y0,y1,z0,z1]<div>view.LockBounds = 1</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>David E DeMarle<br>Kitware, Inc.<br>Principal Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div></div></div></div></div></div>
<br><div class="gmail_quote">On Fri, Jul 7, 2017 at 2:51 PM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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"><div><div class="h5">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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div bgcolor="white" lang="EN-US" link="#0563C1" vlink="#954F72"><div class="m_-1119434486787275355m_-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._DisableFirstR<wbr>enderCameraReset()<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></div></div>______________________________<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/opensou<wbr>rce/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/ParaV<wbr>iew</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/mail<wbr>man/listinfo/paraview</a><br>
<br></blockquote></div><br></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>