<div dir="ltr">Of course i will CC the list, sorry.<div>Here is what i wrote in the mail Cory mentioned:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="font-size:12.8000001907349px"><div><div><div><div><div>Hello Cory,<br></div>I am using Paraview 4.2.0 on a Windows 7 Computer. My question<br></div> was actually if there is a bug when using it in a Python scipt and how you would set up such a script because mine did not work. I realize now that i could have put that information in my first mail :P<br><br></div>I tried again after cleaning some code (positions were copied from the Trace function etc) but still there is no difference in enabling/disabling parallel projection. I do this while setting up the View<br></div>(CreateRenderView()).<br><br></div>Thank you,<br><br></div><span style="font-size:12.8000001907349px">Jonas</span></blockquote><div><br></div><div>I installed version 4.3.1 . My script is working now. I hate to admit it but from all my testing i forgot to remove one line of code that was constantly toggling ON parallel projection. So it did not matter if i toggle it in a function befor because it got resettet al the time...</div><div><br></div><div>I also testet it with version 4.2.0 and it does work. </div><div><br></div><div>Sorry for wasting some of your time by this mistake of mine. And thank you for your effort Cory.</div><div><br></div><div><br></div><div>Jonas</div><div><br></div><div><br></div><div>PS. since i know how helpful these emails can be in the future, here the code to toggle parallel projection:</div><div><br></div><div>(assuming my_view is an object created by 'my_view = CreateRenderView()')</div><div><pre style="font-family:'Courier New';background-color:rgb(43,43,43)"><font color="#94558d">my_v</font><span style="color:rgb(169,183,198)">iew.CameraParallelProjection = <span style="color:rgb(104,151,187)">1 # 1 = parallel<br></span>my__view.CameraParallelScale = <span style="color:rgb(104,151,187)">1.0</span></span></pre></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-16 21:33 GMT+02:00 Cory Quammen <span dir="ltr"><<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Jonas,<div><br></div><div>Please remember to CC the list so that others may benefit from and contribute to the conversation.</div><div><br></div><div>Could you download and try version 4.3.1 and let us know if you have problems with that version?</div><div><br></div><div>Thanks,</div><div>Cory</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 16, 2015 at 3:30 PM, Jonas Asche <span dir="ltr"><<a href="mailto:asche.j@googlemail.com" target="_blank">asche.j@googlemail.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"><div><div><div><div><div><div>Hello Cory,<br></div>I am using Paraview 4.2.0 on a Windows 7 Computer. My question<br></div> was actually if there is a bug when using it in a Python scipt and how you would set up such a script because mine did not work. I realize now that i could have put that information in my first mail :P<br><br></div>I tried again after cleaning some code (positions were copied from the Trace function etc) but still there is no difference in enabling/disabling parallel projection. I do this while setting up the View<br></div>(CreateRenderView()).<br><br></div>Thank you,<br><br></div>Jonas<br><div><div><div><div><br></div></div></div></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-15 15:59 GMT+02:00 Cory Quammen <span dir="ltr"><<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Jonas,</div><div><br></div>What version of ParaView are you using? I am using the latest master branch and saving a screenshot of with parallel projection seems to work fine on this version.<div><br></div><div>Thanks,</div><div>Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Mon, Jul 13, 2015 at 7:10 AM, Jonas Asche via ParaView <span dir="ltr"><<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</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><div dir="ltr">Hello, when i try to switch to parallel projection on in my script i can only save a screenshot with parallel projection disabled:<div><br></div><div><pre style="color:rgb(169,183,198);font-family:'Courier New';background-color:rgb(43,43,43)"><span style="color:rgb(148,85,141)">self</span>.__getView().CameraParallelProjection = <span style="color:rgb(104,151,187)">1<br></span><span style="color:rgb(148,85,141)">self</span>.__getView().CameraParallelScale = <span style="color:rgb(104,151,187)">1.0<br></span><span style="color:rgb(148,85,141)">self</span>.__getView().CameraViewUp = [<span style="color:rgb(104,151,187)">0.0</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(104,151,187)">0.0</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(104,151,187)">1.0</span>]<br><span style="color:rgb(148,85,141)">self</span>.__getView().CameraPosition = camdirection[axis]<br><span style="color:rgb(148,85,141)">self</span>.__getView().CameraFocalPoint = [<span style="color:rgb(104,151,187)">0.0</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(104,151,187)">0.0</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(104,151,187)">33.32500076293945</span>]<br><span style="color:rgb(148,85,141)">self</span>.__getView().CameraClippingRange = [<span style="color:rgb(104,151,187)">154.56988142373606</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(104,151,187)">215.9545612783452</span>]</pre><pre style="color:rgb(169,183,198);font-family:'Courier New';background-color:rgb(43,43,43)">SaveScreenshot(<span style="color:rgb(136,136,198)">str</span>(<span style="color:rgb(148,85,141)">self</span>.__getConfig().get(<span style="color:rgb(165,194,97)">"save"</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(165,194,97)">"path"</span>) + <span style="color:rgb(165,194,97)">'img-'</span>) + <span style="color:rgb(136,136,198)">str</span>(axis) + <span style="color:rgb(165,194,97)">"-" </span>+ <span style="color:rgb(136,136,198)">str</span>(distribution) + <span style="color:rgb(165,194,97)">'.png'</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(148,85,141)">self</span>.__getView())</pre><pre><font face="arial, helvetica, sans-serif"><font color="#000000">When when i print out the parallel scale AFTER savin the screenshot it is set to </font><font color="#000000">46.6471043813.</font></font></pre><pre><font face="arial, helvetica, sans-serif" color="#000000"><br></font></pre><pre><font face="arial, helvetica, sans-serif"><font color="#000000">is this the same bug like here: </font><a href="http://paraview.org/Bug/view.php?id=7466" target="_blank">http://paraview.org/Bug/view.php?id=7466</a></font></pre><pre><font face="arial, helvetica, sans-serif">?</font></pre><pre><font face="arial, helvetica, sans-serif">Is there a workaround or am i doing something wrong?</font></pre><pre><font face="arial, helvetica, sans-serif">Thanks,</font></pre><pre><font face="arial, helvetica, sans-serif">Jonas</font></pre><pre><font face="arial, helvetica, sans-serif"><br></font></pre><pre><br></pre></div></div>
<br></div></div>_______________________________________________<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/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/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=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/mailman/listinfo/paraview</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>
</div></div></blockquote></div><br></div>