Hi,<br><br>In your python script you can set the view size:<br><br>RenderView1.ViewSize = [800, 600]<br><br>If you want to the image to be larger than your desktop window can normally handle, you can pass a Magnification argument to the WriteImage command in your python script.<br>
<br>WriteImage(&quot;out.png&quot;, Magnification=2)<br><br>This will use the aspect ratio according to the view size you have set.<br><br>Pat<br><br><div class="gmail_quote">On Tue, Feb 1, 2011 at 11:43 AM, Hussein Ezzat <span dir="ltr">&lt;<a href="mailto:hussein_ezzat2000@yahoo.com">hussein_ezzat2000@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div style="font-family: verdana,helvetica,sans-serif; font-size: 14pt;"><div></div><div>
Hi Pat,</div><div><br></div><div>I am really sorry replying you late, Thank you for your help. I figured out that if you press the zoom button, it won&#39;t be recorded, but if you did a manual zoom with the mouse, the trace will be recorded!!</div>
<div><br></div><div>Thanks for your help, I actually have another question, how do we control the pixels of the created images, because when I run the python from command line, it saves in 400x400 and I want to increase it, do you have any idea?</div>
<div><br></div><div>Thanks,</div><div>-Hussein</div><div style="font-family: verdana,helvetica,sans-serif; font-size: 14pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><div class="im">
<hr size="1"><b><span style="font-weight: bold;">From:</span></b>
 pat marion &lt;<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>&gt;<br><b><span style="font-weight: bold;">To:</span></b> Hussein Ezzat &lt;<a href="mailto:hussein_ezzat2000@yahoo.com" target="_blank">hussein_ezzat2000@yahoo.com</a>&gt;<br>
</div><b><span style="font-weight: bold;">Sent:</span></b> Fri, January 28, 2011 12:02:18 AM<div><div></div><div class="h5"><br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Paraview] Tracing Zoom<br></div>
</div></font><div><div></div><div class="h5"><br>
Hi,<br><br>I received your python file and I took a look at it.  I didn&#39;t see anything wrong, but I haven&#39;t had time to take a closer look, nor have I run your scipt (I&#39;d have to replace the data with something of my own).  I will let you know if I can find the problem.<br>

<br>Pat<br><br><div class="gmail_quote">On Thu, Jan 27, 2011 at 11:58 AM, Hussein Ezzat <span dir="ltr">&lt;<a rel="nofollow" href="mailto:hussein_ezzat2000@yahoo.com" target="_blank">hussein_ezzat2000@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div style="font-family: verdana,helvetica,sans-serif; font-size: 12pt;"><div></div><div>Kindly find attached the trace script, I added the writing image thing after rendering each animation.</div><div>-H</div><div>
<br>
</div><div style="font-family: verdana,helvetica,sans-serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><div><hr size="1">
<b><span style="font-weight: bold;">From:</span></b> pat marion &lt;<a rel="nofollow" href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>&gt;<br><b><span style="font-weight: bold;">To:</span></b> Hussein Ezzat &lt;<a rel="nofollow" href="mailto:hussein_ezzat2000@yahoo.com" target="_blank">hussein_ezzat2000@yahoo.com</a>&gt;<br>

<b><span style="font-weight: bold;">Cc:</span></b> paraview &lt;<a rel="nofollow" href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>&gt;<br></div><b><span style="font-weight: bold;">Sent:</span></b> Wed, January 26, 2011 5:52:52 PM<div>

<div></div><div><br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Paraview] Tracing
 Zoom<br></div></div></font><div><div></div><div><br>
If you want to email me the trace script I&#39;d be happy to take a look.  It looks like an unwanted camera reset is ocuring.<br><br>Pat<br><br><div class="gmail_quote">On Wed, Jan 26, 2011 at 6:01 PM, Hussein Ezzat <span dir="ltr">&lt;<a rel="nofollow" href="mailto:hussein_ezzat2000@yahoo.com" target="_blank">hussein_ezzat2000@yahoo.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div style="font-family: verdana,helvetica,sans-serif; font-size: 12pt;"><div style="font-family: verdana,helvetica,sans-serif; font-size: 12pt;">


I am using version 3.8.1 64bit<br>Attached 2 pictures, Pic1 is what I want and record the trace for, Pic2 is the outcome of the script.<br>I can&#39;t figure out why the trace script outcome is different from what is expected to be!!<br>


<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><div><hr size="1"><b><span style="font-weight: bold;">From:</span></b> pat marion &lt;<a rel="nofollow" href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>&gt;<br>


<b><span style="font-weight: bold;">To:</span></b> Hussein Ezzat &lt;<a rel="nofollow" href="mailto:hussein_ezzat2000@yahoo.com" target="_blank">hussein_ezzat2000@yahoo.com</a>&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> paraview &lt;<a rel="nofollow" href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>&gt;<br>


</div><b><span style="font-weight: bold;">Sent:</span></b> Wed, January 26, 2011 4:55:53
 PM<div><div></div><div><br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Paraview] Tracing Zoom<br></div></div></font><div><div></div><div><br>
Hi,<br><br>Which version of paraview are you using?  This bug should not occur in the latest paraview release.  If you are using 3.8.0 you will need to upgrade.  After the upgrade you&#39;ll need to re-record the trace script.  Or, you can fix your existing trace script by adding a call to Render() before the camera position is set.<br>



<br>Pat<br><br><div class="gmail_quote">On Wed, Jan 26, 2011 at 5:21 PM, Hussein Ezzat <span dir="ltr">&lt;<a rel="nofollow" href="mailto:hussein_ezzat2000@yahoo.com" target="_blank">hussein_ezzat2000@yahoo.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: verdana,helvetica,sans-serif; font-size: 12pt;"><div></div><div>Pat,</div><div><br></div><div>I am trying to save an animation happening on a map. So I record the trace, and use the button &quot;zoom to box&quot; and chose the specified area on the map; say the map is for North America and the specified Area if for Gulf of Mexico.</div>



<div><br></div><div>When I run the script, it saved the images for the whole map North of America -zoom out you can say- not Gulf of Mexico.<br><div><br></div></div><div><div><br></div></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 12pt;">



<div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> pat marion &lt;<a rel="nofollow" href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>&gt;<br>



<b><span style="font-weight: bold;">To:</span></b> Hussein Ezzat
 &lt;<a rel="nofollow" href="mailto:hussein_ezzat2000@yahoo.com" target="_blank">hussein_ezzat2000@yahoo.com</a>&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> paraview &lt;<a rel="nofollow" href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>&gt;<br>



<b><span style="font-weight: bold;">Sent:</span></b> Wed, January 26, 2011 4:13:44 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Paraview] Tracing Zoom<br></font></div><div><div></div><div>
<br>
Hi Hussein,<br><br>Could you elaborate on the problem you are experiencing?  I&#39;m not sure what you mean when you say that the images are not saved in the specified area.  As for zooming position, python trace should record camera properties such as position, focal point, and parallel scale depending if you are using parallel or perspective projection.<br>




<br>Pat<br><br><div class="gmail_quote">On Wed, Jan 26, 2011 at 5:04 PM, Hussein Ezzat <span dir="ltr">&lt;<a rel="nofollow" href="mailto:hussein_ezzat2000@yahoo.com" target="_blank">hussein_ezzat2000@yahoo.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: verdana,helvetica,sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><div></div><div>Hi,</div><div><br></div><div>Anyone have an idea why the trace python shell don&#39;t record the zooming position and the images are not saved in the specified area! Any solution for that?</div>




<div><br></div><div>Thanks,</div><div>-Hussein</div><div></div>


</div><br>

      </div><br>_______________________________________________<br>
Powered by <a rel="nofollow" href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br><span><span><span><span>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a></span></span></span></span><br>
<br><span><span><span><span>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a></span></span></span></span><br>
<br>
Follow this link to subscribe/unsubscribe:<br><span><span><span><span>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a></span></span></span></span><br>
<br></blockquote></div><br>
</div></div></div></div><div></div>


</div><br>







      </div></blockquote></div><br>
</div></div></div></div>
</div><br>

      </div></blockquote></div><br>
</div></div></div></div><div></div>


</div><br>







      </div></blockquote></div><br>
</div></div></div></div><div></div>


</div><br>







      </div></blockquote></div><br>