[Paraview] Tracing Zoom
pat marion
pat.marion at kitware.com
Tue Feb 1 11:50:08 EST 2011
Hi,
In your python script you can set the view size:
RenderView1.ViewSize = [800, 600]
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.
WriteImage("out.png", Magnification=2)
This will use the aspect ratio according to the view size you have set.
Pat
On Tue, Feb 1, 2011 at 11:43 AM, Hussein Ezzat
<hussein_ezzat2000 at yahoo.com>wrote:
> Hi Pat,
>
> I am really sorry replying you late, Thank you for your help. I figured out
> that if you press the zoom button, it won't be recorded, but if you did a
> manual zoom with the mouse, the trace will be recorded!!
>
> 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?
>
> Thanks,
> -Hussein
>
> ------------------------------
> *From:* pat marion <pat.marion at kitware.com>
> *To:* Hussein Ezzat <hussein_ezzat2000 at yahoo.com>
> *Sent:* Fri, January 28, 2011 12:02:18 AM
>
> *Subject:* Re: [Paraview] Tracing Zoom
>
> Hi,
>
> I received your python file and I took a look at it. I didn't see anything
> wrong, but I haven't had time to take a closer look, nor have I run your
> scipt (I'd have to replace the data with something of my own). I will let
> you know if I can find the problem.
>
> Pat
>
> On Thu, Jan 27, 2011 at 11:58 AM, Hussein Ezzat <
> hussein_ezzat2000 at yahoo.com> wrote:
>
>> Kindly find attached the trace script, I added the writing image thing
>> after rendering each animation.
>> -H
>>
>>
>> ------------------------------
>> *From:* pat marion <pat.marion at kitware.com>
>> *To:* Hussein Ezzat <hussein_ezzat2000 at yahoo.com>
>> *Cc:* paraview <paraview at paraview.org>
>> *Sent:* Wed, January 26, 2011 5:52:52 PM
>>
>> *Subject:* Re: [Paraview] Tracing Zoom
>>
>> If you want to email me the trace script I'd be happy to take a look. It
>> looks like an unwanted camera reset is ocuring.
>>
>> Pat
>>
>> On Wed, Jan 26, 2011 at 6:01 PM, Hussein Ezzat <
>> hussein_ezzat2000 at yahoo.com> wrote:
>>
>>> I am using version 3.8.1 64bit
>>> Attached 2 pictures, Pic1 is what I want and record the trace for, Pic2
>>> is the outcome of the script.
>>> I can't figure out why the trace script outcome is different from what is
>>> expected to be!!
>>>
>>> ------------------------------
>>> *From:* pat marion <pat.marion at kitware.com>
>>> *To:* Hussein Ezzat <hussein_ezzat2000 at yahoo.com>
>>> *Cc:* paraview <paraview at paraview.org>
>>> *Sent:* Wed, January 26, 2011 4:55:53 PM
>>>
>>> *Subject:* Re: [Paraview] Tracing Zoom
>>>
>>> Hi,
>>>
>>> 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'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.
>>>
>>> Pat
>>>
>>> On Wed, Jan 26, 2011 at 5:21 PM, Hussein Ezzat <
>>> hussein_ezzat2000 at yahoo.com> wrote:
>>>
>>>> Pat,
>>>>
>>>> I am trying to save an animation happening on a map. So I record the
>>>> trace, and use the button "zoom to box" and chose the specified area on the
>>>> map; say the map is for North America and the specified Area if for Gulf of
>>>> Mexico.
>>>>
>>>> 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.
>>>>
>>>>
>>>>
>>>> ------------------------------
>>>> *From:* pat marion <pat.marion at kitware.com>
>>>> *To:* Hussein Ezzat <hussein_ezzat2000 at yahoo.com>
>>>> *Cc:* paraview <paraview at paraview.org>
>>>> *Sent:* Wed, January 26, 2011 4:13:44 PM
>>>> *Subject:* Re: [Paraview] Tracing Zoom
>>>>
>>>> Hi Hussein,
>>>>
>>>> Could you elaborate on the problem you are experiencing? I'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.
>>>>
>>>> Pat
>>>>
>>>> On Wed, Jan 26, 2011 at 5:04 PM, Hussein Ezzat <
>>>> hussein_ezzat2000 at yahoo.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Anyone have an idea why the trace python shell don't record the zooming
>>>>> position and the images are not saved in the specified area! Any solution
>>>>> for that?
>>>>>
>>>>> Thanks,
>>>>> -Hussein
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Powered by www.kitware.com
>>>>>
>>>>> Visit other Kitware open-source projects at
>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>
>>>>> Please keep messages on-topic and check the ParaView Wiki at:
>>>>> http://paraview.org/Wiki/ParaView
>>>>>
>>>>> Follow this link to subscribe/unsubscribe:
>>>>> http://www.paraview.org/mailman/listinfo/paraview
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110201/e107975d/attachment-0001.htm>
More information about the ParaView
mailing list