[Paraview] Python CreateRenderView
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Thu Dec 4 09:34:07 EST 2008
GetRenderView() locates a registered render view and returns that. If no
view is registered GetRenderView() will return NULL. To register a view use:
servermanager.Register(view)
You example becomes:
from paraview import servermanager
servermanager.Connect()
view = servermanager.CreateRenderView()
servermanager.Register(view)
print servermanager.GetRenderView()
Utkarsh
Jacques Papper wrote:
> Hi,
>
> I am wondering why when I do the following in pvpython:
>
> from paraview import servermanager
> servermanager.Connect()
> view = servermanager.CreateRenderView()
> print servermanager.GetRenderView()
>
> This shows None -
>
> Shouldn't creating a render view set it as well ?
> Is there a way of setting it ?
>
> Thank you
> Jacques
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
More information about the ParaView
mailing list