[Paraview] multiple windows in pvpython

pat marion pat.marion at kitware.com
Fri Jul 2 13:20:19 EDT 2010


Hi,

As Utkarsh said, there is no paraview api to position the windows, but you
can get the vtkRenderWindow and set the position like this:

window = view.GetRenderWindow()
window.SetPosition(450, 0)

Pat

On Thu, Jul 1, 2010 at 5:09 PM, pat marion <pat.marion at kitware.com> wrote:

> To manipulate the camera, take a look at this post from yesterday:
>
> http://markmail.org/message/sjt6pbkyc56l2wgl
>
> Pat
>
> On Thu, Jul 1, 2010 at 4:10 PM, "Jörg F. Unger" <j-unger at northwestern.edu>wrote:
>
>> Hi everyone,
>> I'm trying to reload a pvsm from Paraview within pvpython, which has
>> several views. The code is the following
>>
>> from paraview.simple import *
>> servermanager.LoadState("NonlocalDamage.pvsm")
>> views = GetRenderViews()
>> for view in views:
>>     view.ViewSize = [100,100]
>>     view.ViewPosition = [0,0]
>>     view.StillRender()
>>
>> Unfortunately, the ViewPosition command does not seem to work so that
>> all the windows open on top of each other. Any suggestions, how to solve
>> the problem?
>>
>> If there is a more detailed documentation available how to manipulate
>> the output in pvpython, it would be great if you could send me the link.
>> Is there a possibility to make these windows interactive, so that I can
>> zoom or modify the camera  interactively?
>>
>> Thanks in advance
>> Jörg F.
>> _______________________________________________
>> 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/20100702/e320b318/attachment.htm>


More information about the ParaView mailing list