<br>Hi again,<br><br>My background would be updated (still black) even when I tried to use<br>view.Background = [1,0,0]. <br><br>Thanks,<br><br><div class="gmail_quote">On Thu, Apr 9, 2009 at 8:49 AM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></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;">Hmm, I am not sure what's happening. Try changing the background color<br>
of the view to something non-black. Is the color being updated?<br>
<br>
view.Background = [1, 0, 0]<br>
<br>
<br>
On Thu, Apr 9, 2009 at 8:37 AM, Battalgazi YILDIRIM<br>
<div><div></div><div class="h5"><<a href="mailto:yildirimga@gmail.com">yildirimga@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I tried to write png file (view.WriteImage("image.png", "vtkPNGWriter",1)<br>
> ), and I got following error<br>
><br>
> Warning: In<br>
> /home/yildirim/projects/ParaView3/Servers/ServerManager/vtkSMRenderViewProxy.cxx,<br>
> line 1110<br>
> vtkSMIceTDesktopRenderViewProxy (0x2630390): Disabling offscreen rendering<br>
> since empty image was detected.<br>
><br>
> and image is blank too (visualized with gimp)<br>
><br>
> Thanks,<br>
><br>
> On Wed, Apr 8, 2009 at 10:17 PM, Utkarsh Ayachit<br>
> <<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>> wrote:<br>
>><br>
>> Is the render window popping up behind some other window?<br>
>> Try capturing an image using:<br>
>> view.WriteImage("C:/temp/image.png", "vtkPNGWriter", 1)<br>
>> Is that blank too?<br>
>><br>
>> Utkarsh<br>
>><br>
>> On Wed, Apr 8, 2009 at 3:29 PM, Battalgazi YILDIRIM<br>
>> <<a href="mailto:yildirimga@gmail.com">yildirimga@gmail.com</a>> wrote:<br>
>> > Hi,<br>
>> ><br>
>> > I have been reading Paraview Scripting with Python document.<br>
>> > I have installed paraview from ubuntu repository. Everything was<br>
>> > working ok for following script (I could see a cone on the pop-up window<br>
>> > as<br>
>> > in<br>
>> > Paraview Scripting with Python manual).<br>
>> ><br>
>> > I decided to download the source code and build it from scratch. It was<br>
>> > ok<br>
>> > Paraview was working correctly, but now this script works but I got<br>
>> > blank pop-up windows and don't see the cone any more.<br>
>> ><br>
>> ><br>
>> > do yo have any idea what might have been gone wrong?<br>
>> ><br>
>> > Thanks,<br>
>> ><br>
>> ><br>
>> > from paraview import servermanager<br>
>> > import time<br>
>> > import os<br>
>> ><br>
>> > connection=servermanager.Connect('localhost')<br>
>> > coneSource = servermanager.sources.ConeSource()<br>
>> > coneSource.Resolution = 32<br>
>> > coneSource.Center[0:3]=[1,2,3]<br>
>> ><br>
>> > shrinkFilter = servermanager.filters.ShrinkFilter(Input=coneSource)<br>
>> ><br>
>> > shrinkFilter.UpdatePipeline()<br>
>> > shrinkFilter.UpdatePipelineInformation()<br>
>> ><br>
>> > view = servermanager.CreateRenderView()<br>
>> > rep = servermanager.CreateRepresentation(shrinkFilter, view)<br>
>> > view.StillRender()<br>
>> > view.ResetCamera()<br>
>> > view.StillRender()<br>
>> > time.sleep(4)<br>
>> > --<br>
>> > B. Gazi YILDIRIM<br>
>> ><br>
>> > _______________________________________________<br>
>> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> ><br>
>> > Visit other Kitware open-source projects at<br>
>> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> ><br>
>> > Please keep messages on-topic and check the ParaView Wiki at:<br>
>> > <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
>> ><br>
>> > Follow this link to subscribe/unsubscribe:<br>
>> > <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
>> ><br>
>> ><br>
><br>
><br>
><br>
> --<br>
> B. Gazi YILDIRIM<br>
><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>B. Gazi YILDIRIM<br>