[Paraview] blank screen,

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed Apr 8 22:17:28 EDT 2009


Is the render window popping up behind some other window?
Try capturing an image using:
view.WriteImage("C:/temp/image.png", "vtkPNGWriter", 1)
Is that blank too?

Utkarsh

On Wed, Apr 8, 2009 at 3:29 PM, Battalgazi YILDIRIM
<yildirimga at gmail.com> wrote:
> Hi,
>
> I have been reading Paraview Scripting with Python document.
> I have installed  paraview from ubuntu repository. Everything was
> working ok for following script (I could see a cone on the pop-up window as
> in
> Paraview Scripting with Python manual).
>
> I decided to download the source code and build it from scratch. It was ok
> Paraview was working correctly, but now this script works but I got
> blank pop-up windows and don't see the cone any more.
>
>
> do yo have any idea what might have been gone wrong?
>
> Thanks,
>
>
> from paraview import servermanager
> import time
> import os
>
> connection=servermanager.Connect('localhost')
> coneSource = servermanager.sources.ConeSource()
> coneSource.Resolution = 32
> coneSource.Center[0:3]=[1,2,3]
>
> shrinkFilter = servermanager.filters.ShrinkFilter(Input=coneSource)
>
> shrinkFilter.UpdatePipeline()
> shrinkFilter.UpdatePipelineInformation()
>
> view = servermanager.CreateRenderView()
> rep = servermanager.CreateRepresentation(shrinkFilter, view)
> view.StillRender()
> view.ResetCamera()
> view.StillRender()
> time.sleep(4)
> --
> B. Gazi YILDIRIM
>
> _______________________________________________
> 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
>
>


More information about the ParaView mailing list