<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Title content=""><meta name=Keywords content=""><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Arial;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Courier New";
        panose-1:2 7 3 9 2 2 5 2 4 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:Calibri;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Calibri;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:Calibri;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body bgcolor=white lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt'>Hi,<o:p></o:p></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().<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>Here is a snippet of the code:<o:p></o:p></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._DisableFirstRenderCameraReset()<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()<o:p></o:p></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)<o:p></o:p></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><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>How can I force changes on Clipping Range & Thickness values?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>Regards,<o:p></o:p></span></p></div></body></html>