Hi John, For render window interaction via pvpython, see the example script here:
http://www.paraview.org/pipermail/paraview/2010-June/018059.html You probably need to update the library name in the 2nd import statement. As for your 2nd question, it is possible to create a custom ParaView app (with GUI) from Python, but it takes some setup. It's not a use case that is supported with examples and documentation, but if you're clever you can do it using a python Qt library like PyQt4. My preferred library is called PythonQt, with a c++ plugin you can expose much of the ParaView pq api to python. I don't have documentation for it, yet, but it's here (PythonQtPlugin-pv4.0 branch): https://github.com/patmarion/ParaView/tree/PythonQtPlugin-pv4.0 Pat On Mon, Jun 17, 2013 at 4:12 AM, Biddiscombe, John A. <biddi...@cscs.ch>wrote: > I don’t use python much so haven’t really explored the paraview+python > capabilities, however my tests the other day tell me that**** > > ** ** > > The python interface within paraview is very nice and you can create > visualizations entirely from script with nice GUI interface thrown in.**** > > ** ** > > If you run a raw python shell and import paraview, the renderviews are not > interactive, so although you can setup reasonably decent visualizations, > you can’t ‘play’ with them.**** > > ** ** > > Is there a way of having a pure python interface (i.e. no paraview gui), > but still keep some of the interactive features that the paraview gui gives > you (i.e. an event loop for interaction and some other basic functionality) > **** > > ** ** > > …Is it possible to go further and create a mini paraview entirely in > python? (I’m not sure what I’m asking for here, but I am curious as to what > you can do).**** > > ** ** > > Thanks**** > > ** ** > > JB**** > > ** ** > > -- **** > > John Biddiscombe, email:biddisco @.at.@ cscs.ch**** > > http://www.cscs.ch/**** > > CSCS, Swiss National Supercomputing Centre | Tel: +41 (91) 610.82.07**** > > Via Trevano 131, 6900 Lugano, Switzerland | Fax: +41 (91) 610.82.82**** > > ** ** > > _______________________________________________ > 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 > >
_______________________________________________ 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