[Paraview] python scripting

Berk Geveci berk.geveci at kitware.com
Tue Oct 14 14:18:54 EDT 2008


Are you entering this from the GUI python shell or from a stand-alone
python session? Which platform are you on?

-berk

On Fri, Oct 10, 2008 at 7:38 PM, Tomislav Maric <tomislav.maric at fsb.hr> wrote:
> Hello,
>
> I'm trying to visualise ConeSource() for practice on local host, when i
> run this code:
>
> from paraview import servermanager as sm
> sm.Connect()
> file = "my path to filename"
> data = sm.sources.LegacyVTKReader(FileNames=file)
> view = sm.CreateRenderView()
> rep = sm.CreateRepresentation()
> view.StillRender()
>
> everyting is ok, but when I click with my mouse and thus put the vtk
> screen to background, the image dissapears, and view.ResetCamera() along
> with view.StillRender() can't bring it back.
>
> Also, I'm trying to render some already filtered data saved as .vtk, and
> I repeat the process from above, nothing is shown on the vtk window, not
> even after view.ResetCamera() is called.
>
> Thank You,
>
> Tomislav Maric
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>


More information about the ParaView mailing list