I'm pretty sure I added a commit that fixes this behavior, but that may
have happened after the 4.0 release. See commit:
commit af99ee38d6edcefaeb5f5bd2936f0bf82bdcf565
Author: Pat Marion pat.mar...@kitware.com
Date: Fri May 24 12:23:56 2013 +1000
Change the behavior of pqPythonShell
Please subscribe to the paraview user's mailing list (
paraview@paraview.org) and send your questions there:
http://www.paraview.org/mailman/listinfo/paraview
It's actually quite easy to use the socket plugin with netcat utility,
available on linux and mac OSX, and perhaps windows. Just use
I already replied to your email off list, but I'll copy the response here,
too
There are no pre-compiled versions of the plugin, so you will have to use
Visual Studio C++ compiler to compile it yourself. The plugin is tested
mostly on Linux and MacOSX, but it should compile on Windows too
Hi Paul,
If you're willing to use the Paraview Python console, or the Python
programmable filter, then you could use Python's datetime module to convert
seconds to a meaningful date. Just run 'import datetime' and then use one
of the commands here:
Hi,
I think that ParaView's python package should provide a mechanism to import
all vtk modules. The site-packages/paraview/vtk directory includes .py
files for each vtk module, but the __init__.py file only imports a subset
of them. As far as I can tell, it's up to the user to import
.
Utkarsh
On Fri, Jul 5, 2013 at 12:34 PM, Pat Marion pat.mar...@kitware.com
wrote:
Hi,
I wanted to setup a project that built VTK libraries using the modern vtk
module cmake code, added Python wrapping to the VTK libraries, and then
built a ParaView plugin that linked against the VTK
Hi,
I wanted to setup a project that built VTK libraries using the modern vtk
module cmake code, added Python wrapping to the VTK libraries, and then
built a ParaView plugin that linked against the VTK libraries.
Traditionally, a ParaView plugin is created by compiling all the cxx files
into the
Hi Claudio,
Thanks for reporting this issue. It's a bug in the script, I think it
might only be an issue if using the script in ParaView 4.0, is that the
version you are using? Anyway, to correct it, please edit line 179 and
change:
exportViewToDirectory(GetRenderView(), outDir)
to
TypeError: 'float' object is not iterable
It is another bug in the script or I'm doing something wrong? Can you help
me again with this problem?
Thank you
All the best
Claudio
From: Pat Marion pat.mar...@kitware.com
Date: Wed, 19 Jun 2013 12:50:57 -0400
To: Claudio Petrini petri
Great! Thank you for reporting the issues, that was very helpful for
improving the script.
Pat
On Wed, Jun 19, 2013 at 3:14 PM, petrinic petri...@student.ethz.ch wrote:
Hi, now it works perfectly!
Thank you for your help!
All the best
Claudio
From: Pat Marion pat.mar...@kitware.com
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
Hi Bill,
1) I submitted a patch to ParaView that makes copy and paste work. I think
the patch didn't make it into ParaView 4.0 release candidate, but hopefully
it can be available soon. The commit is in the PythonQt-pv4.0 branch that
I mentioned to you in another email. It is:
Good afternoon folks,
We’d like to announce the upcoming Android tutorial: App Building with VES
and Kiwi next Thursday, June 13 from 2:00pm-3:00pm.
Hosted by Kitware, this free, one hour webinar will present a tutorial on
Android programming with the VES and Kiwi libraries. You'll learn how to
with losing the ability to use my own plugins. I
don't know if this makes a difference or not - as far as I understand from
the ParaView build wiki, I should be able to use ParaView without using
make install
On May 30, 2013, at 22:12 , Pat Marion wrote:
Hi Michael,
That's a standard behavior
Hi Michael,
That's a standard behavior of MacOSX. If you start the application with
open bin/paraview.app then the window will appear on top.
Pat
On Thu, May 30, 2013 at 10:38 AM, Michael Schlottke
m.schlot...@aia.rwth-aachen.de wrote:
Hi,
I installed ParaView 4.0.0-RC2 on my Macbook by
Hi Tim,
ParaView reassigns sys.stdout so that output can be routed to the ParaView
python console window. Your script could set stdout back to the original
value:
import sys
sys.stdout = sys.__stdout__
sys.stderr = sys.__stderr__
For documentation, see:
Hi Tim,
Variable names in trace are generated by this function defined in
smtrace.py:
def pyvariable_from_proxy_name(proxy_name):
return servermanager._make_name_valid(proxy_name.replace(., _))
That function will generate a suitable variable name from a proxy name. A
proxy is registered
Hi Travis,
I think you mean the MobileRemoteControl plugin, right? Can you paste more
of your code? From what you have shared, it's hard to know where things
are going wrong. My guess is that you are forgetting to receive the
ready command: after connecting to the socket, you should first
Try the Cell Centers filter. Out.vtu -- Cell Centers -- Glyph.
Pat
On Tue, Apr 16, 2013 at 10:10 PM, pie...@redpanda.nl wrote:
Hi Pat, Berk,
Thanks for your replies. Displaying the cellNormals works fine now, but I
still can't select the normals computed in my Python script from the
ParaView does a weird thing, in the Color By drop down menu, it show an
array named cellNormals but this array doesn't actually exist on the data
object, and it doesn't appear in the information tab. So, as Berk said,
you should apply the Generate Surface Normals filter, and make sure you
check
...@tigers.lsu.edu wrote:
The options you suggested seemed not to work. I also forgot to mention
that I am not able to run a simple plot script using pvpython.
On Sun, Mar 17, 2013 at 6:43 PM, Pat Marion pat.mar...@kitware.comwrote:
For PYTHONPATH, try removing the last /paraview components from
/Python.framework/Versions/2.5/Extras/lib/python/numpy/core/multiarray.so:
mach-o, but wrong architecture
On Mon, Mar 18, 2013 at 2:54 AM, Pat Marion pat.mar...@kitware.comwrote:
For the script you downloaded, you should remove line 3 where it says
Connect(). It's possible the script is old
For PYTHONPATH, try removing the last /paraview components from the path,
so you're setting: /Applications/ParaView.app/Contents/Python
Also add /Applications/ParaView.app/Contents/Libraries to PYTHONPATH and
DYLD_LIBRARY_PATH. Note, that is DYLD not LD. You don't need to add the
Contents/bin
Join us March 14th at 4:00 pm EST for a brief, 20 minute webinar to discuss
mobile app development on iOS and Android using VTK, VES, and kiwi. The
webinar will highlight the new features in KiwiViewer 2.0 and then we'll do
an introduction to mobile app development on iOS and Android, with a
[apologies for the cross post]
On behalf of the mobile development team at Kitware, I’m happy to announce
the release of KiwiViewer v2.0 for iOS, now available for download in the
App Store https://itunes.apple.com/us/app/kiwiviewer/id455271681?mt=8.
The app runs on devices with iOS 6 and is
Hi folks,
I just sent an email announcing the
releasehttp://www.kitware.com/blog/home/post/458of KiwiViewer v2.0
for iOS. I wanted to send another email to highlight
two new features that are specific to ParaView. I'm interested in your
feedback if you have a chance to try these features,
I forgot to cc the mailing list.
On Tue, Feb 26, 2013 at 8:42 AM, Pat Marion pat.mar...@kitware.com wrote:
The programmable filter will run in the same process, using the same
python, as the main script. But, it's possible something is not working
right with the paths. I would put a print
/**Contents/bin
in the path for the main script. Is there anything missing?
Quoting Pat Marion pat.mar...@kitware.com:
I forgot to cc the mailing list.
On Tue, Feb 26, 2013 at 8:42 AM, Pat Marion pat.mar...@kitware.com
wrote:
The programmable filter will run in the same process, using
Hi Ben,
It's possible that your data is causing certain filters to crash. If you
can share an example data file, then maybe some paraview developer can try
it out, and if we can reproduce the crash then we can try to fix the filter
for future releases of paraview. Also, I'd recommend you
Does anyone know if there's a way to have the gear button enabled by
default? I would like it if there was a persistent setting Show Advanced
Options that I could toggle on so I don't have to click the gear so much...
Pat
On Thu, Feb 14, 2013 at 11:02 PM, Russell M. Taylor II
and
EnSight, I was hoping the syntax would be pretty intuitive but some of what
you are doing there is not clear to me, just because I'm such a newbie.
Thanks for the clarification. I think this sets my mind at ease and helps
my user.
-- Rich
On Feb 13, 2013, at 9:18 PM, Pat Marion wrote
is there a way to confirm that decomposition is working for a
particular type of data? In the GUI, I can paint the data with the process
ID scalars filter. Any similar trick for pvbatch?
Thanks!
-- Rich
On Feb 12, 2013, at 11:31 PM, Pat Marion wrote:
Hi Rich,
The command line
Hi Rich,
The command line will be:
mpirun -np 1 /path/to/pvbatch /path/to/script.py
The pvbatch executable is similar to pvserver, except proc 0 doesn't wait
for a client connection, it reads the python script specified on the
command line and executes the script as if it were instructions
thanks for any further comments and ideas!
Max
P.S.: Once I find the time I'm still happy to dig deeper in to the causes
of the segfault, but I'll wait for confirmation whether it's worth it or
not.
2013/2/1 Pat Marion pat.mar...@kitware.com
See, if you can import vtk, then you're probably
/lib/python2.7/dist-packages/ubuntuone-installer',
'/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol',
'/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode']
2013/1/30 Pat Marion pat.mar...@kitware.com
Hi,
It sounds like you probably have multiple versions of the vtk libraries
There's a lot of VTK python modules, and unfortunately they are not all
imported with you import paraview.vtk from ParaView's python console. But,
all the python modules are shipped with ParaView, as far as I know, they
just aren't imported. I wish there was an easy way to import the full set
of
sean.ziege...@nrlssc.navy.mil wrote:
FWIW, I've also found that only importing the VTK modules that one needs
in a given script shaves off some time during the initialization of the
script.
On 01/29/13 06:50, Pat Marion wrote:
There's a lot of VTK python modules, and unfortunately they are not all
Hi,
It sounds like you probably have multiple versions of the vtk libraries
installed someplace in your path. Maybe the FEniCS package ships it's own
version of the vtk libraries? If FEniCS imports a different version of
vtk, then paraview won't be able to import vtk within the same memory
Hi,
I'm not sure if this is relevant to your discussion, but I just wanted to
make sure you guys are aware of this class in VTK:
http://www.vtk.org/doc/nightly/html/classvtkTDxInteractorStyle.html
Pat
On Sat, Dec 22, 2012 at 4:38 AM, Aashish Chaudhary
aashish.chaudh...@kitware.com wrote:
I think you need to replace del writer with Delete(writer).
ParaView has a proxy manager that keeps all proxies. Proxies will not be
deleted when the python reference is deleted, you must explicitly call
paraview.simple.Delete(). The return value of CreateWriter is a proxy, so
it must be
to
paraview.
Pat
On Wed, Dec 5, 2012 at 10:19 PM, Pat Marion pat.mar...@kitware.com wrote:
Hi John,
Thanks for the patch! Actually, funny you should send this email... I
just revived this this branch, 13024-debug-leaks-view, over the weekend. I
encountered that same thing as you did, merge
7, 2012, at 1:18 PM, Felipe Bordeu felipe.bor...@ec-nantes.fr
wrote:
Thanks pat,
This is the result. https://www.youtube.com/watch?v=6vqPQAWEqBk
Felipe
Le 06/12/2012 13:57, Pat Marion a écrit :
Yes, you can send information back through the socket. If you're using
the socket
Yes, you can send information back through the socket. If you're using the
socket to invoke python code, then any string returned by your python code
will be written to the socket. But, by default the python handler method
doesn't return anything. If you edit pqPythonSocketHandler.cxx, you can
Hi John,
Thanks for the patch! Actually, funny you should send this email... I just
revived this this branch, 13024-debug-leaks-view, over the weekend. I
encountered that same thing as you did, merge conflicts and an annoying
dependency on vtkViewsQt.
Unfortunately, the vtkQtDebugLeaksView got
The python code is much simpler in ParaView:
OpenDataFile('/path/to/data.obj')
Show()
For more commands, try:
help(paraview.simple)
You can also do: help(any function or variable name)
Pat
On Wed, Dec 5, 2012 at 8:15 AM, Li Guan li.9...@gmail.com wrote:
Hi guys,
I am trying to load a
No, you can't embed the ParaView GUI inside a PyQt application in that
manner. But, you could extend the ParaView GUI using PyQt if you generate
SIP bindings fo the classes in the ParaView/Qt source directory. I'm not
sure if that has ever been done before. You can embed objects from the
Is it useful to have a pvserver binary that supports both GLX and OSMesa?
Usually an environment that requires pvserver osmesa doesn't have X11
installed, so you wouldn't want a binary with dependencies on X11.
Pat
On Fri, Oct 19, 2012 at 10:25 AM, Utkarsh Ayachit
utkarsh.ayac...@kitware.com
?
Sent from my iPhone
On Oct 8, 2012, at 4:45 PM, Pat Marion pat.mar...@kitware.com wrote:
You need to do both things.
1) Set DYLD_LIBRARY_PATH
2) Set the sys.path as Leo said in the earlier email. You can also set
the PYTHONPATH environment variable instead of appending sys.path in python
-- Rich
On Oct 9, 2012, at 6:28 AM, Pat Marion wrote:
Hi Rich,
I totally agreee with you, I find it very confusing that there is a
compile time flag VTK_USE_OFFSCREEN, and a runtime flag
--use-offscreen-rendering, and an OSMesa compile flag
VTK_OPENGL_HAS_OSMESA. I think that the options
I decided to start a new thread. The original subject was [Paraview] Is
there any point to compiling with MPI but without offscreen rendering? and
John Biddiscombe asked if I had thoughts on improvements to the cmake
options for compiling VTK and ParaView with OSMesa.
For me, I pretty much just
It looks the compiler included system HDF5 headers even though
VTK_USE_SYSTEM_HDF5 is disabled. Then, at link time it doesn't link the
system HDF5 libraries because VTK_USE_SYSTEM_HDF5 if off. You could try
running cmake in the build dir and setting VTK_USE_SYSTEM_HDF5 to OFF.
I think this
Oops, I meant to say you should set VTK_USE_SYSTEM_HDF5 to ON.
Pat
On Thu, Oct 11, 2012 at 4:02 PM, Pat Marion pat.mar...@kitware.com wrote:
It looks the compiler included system HDF5 headers even though
VTK_USE_SYSTEM_HDF5 is disabled. Then, at link time it doesn't link the
system HDF5
Here's one guess, it could be some mismatched library versions of Qt. Run
ldd /home/ghajar_jazi/ParaView-ex/lib/paraview-3.14/paraview to see the
list of dynamic library dependencies for paraview. Take a look at the Qt
libraries listed. Are they the ones you expect? It's possible that you
Hi Rich,
I totally agreee with you, I find it very confusing that there is a compile
time flag VTK_USE_OFFSCREEN, and a runtime flag --use-offscreen-rendering,
and an OSMesa compile flag VTK_OPENGL_HAS_OSMESA. I think that the options
could be presented in a way that makes it more clear what is
,
Armin
On Tue, Oct 9, 2012 at 2:36 PM, Pat Marion pat.mar...@kitware.com
wrote:
Here's one guess, it could be some mismatched library versions of Qt.
Run
ldd /home/ghajar_jazi/ParaView-ex/lib/paraview-3.14/paraview to see the
list of dynamic library dependencies for paraview. Take
You need to do both things.
1) Set DYLD_LIBRARY_PATH
2) Set the sys.path as Leo said in the earlier email. You can also set the
PYTHONPATH environment variable instead of appending sys.path in python.
Pat
On Sat, Oct 6, 2012 at 5:27 PM, the lily the.1.l...@hotmail.com wrote:
I tried that
You need to set the environment variable DYLD_LIBRARY_PATH to the directory
that contains libvtkCommonPythonD.dylib. Try entering this into your
Terminal before launching ipython:
$ export DYLD_LIBRARY_PATH=/Applications/Paraview/Contents/Libraries
$ ipython
Pat
On Fri, Oct 5, 2012 at 4:35
Hi Ian,
I added a note to the mantis issue.
I believe that it is already possible to execute python code from a string
(instead of a file) like this:
#include pqPythonShell.h
#include pqPythonDialog.h
pythonManager()-pythonShellDialog()-shell()-executeScript(print 'hello
world!');
Pat
On
Hi,
I just found this thread, sorry I didn't join earlier! Thanks for
uploading those movies, the second one really helps demonstrate the lag
issue.
Well, I'm almost certain the issue is that ParaViewSocketPlugin doesn't
work very well for this type of high frequency rendering. I've been
Hi Frank,
I'm glad you got a workaround in place. We'll put this in the bug tracker
so it can get fixed. ParaView should catch the exception or warning and
report it properly without hanging!
For those following along, here is a simple way to trigger the hang:
import numpy
numpy.ones(1)/0
In
You can set the PYTHONHOME environment variable to indicate an alternate
python install root. See the documentation here:
http://docs.python.org/release/2.3.5/inst/search-path.html
Specifically, the part that says...
PYTHONHOME sets an alternate value for the prefix of the Python
Additionally, for viewing point clouds in ParaView, you will want to go to
the ParaView Settings - Render View and uncheck LOD Threshold and set
the Coincident Topology Resolution combobox to Do Nothing and then
restart ParaView.
Pat
On Sat, Jun 16, 2012 at 3:22 PM, Gregory Lewis-Paley
I don't think so, but you can use PyQt4:
import PyQt4.QtGui
filename = PyQt4.QtGui.QFileDialog.getOpenFileName(None, Select a file...)
print filename
Pat
On Wed, Jun 13, 2012 at 10:58 AM, Rebecca Reizner
rrreizner7...@gmail.comwrote:
Is it possible to open up Paraview's file chooser using
Hi Andrew,
You're loading new data each loop, and never removing it. For starters,
you could try adding a Delete call inside the loop after WriteImage:
Delete(rho_180x180x180_frame0010_subs01_total_raw)
Pat
On Tue, Jun 12, 2012 at 1:03 PM, Andrew Pearson
andrew.j.pear...@gmail.comwrote:
In ParaView GUI, each object in the Pipeline Browser is called a source
proxy. The call to ImageReader() constructs a new source proxy, just like
using File -- Open in the gui. There is something called the Proxy
Manager which keeps track of the source proxies, whether they are assigned
to
This will do it:
# CMakeLists.txt
include(wrap-python.cmake)
add_paraview_plugin(${library_name} ...)
target_link_libraries(${library_name} ${deps})
if(VTK_WRAP_PYTHON)
wrap_python(${library_name} ${sources})
endif()
# wrap-python.cmake
if(NOT DEFINED VTK_CMAKE_DIR)
message(SEND_ERROR
Hi Hal,
You can import paraview.vtk.io to access the xml writer. I agree with
you, it's annoying, paraview's vtk module should be same as the standard
vtk module. Otherwise, most scripts don't work when transitioning to
pvpython. I'll go file a bug report.
Pat
On Mon, Apr 2, 2012 at 2:40
You may find it useful to checkout this link:
http://www.earthmodels.org/data-and-tools/topography/paraview-topography-by-texture-mapping
There, you can download a unit sphere with texture coordinates:
http://www.earthmodels.org/data-and-tools/topography/unitsphere_5deg_open_surfacenormals.vtp
Hi Bruce,
What type of data are you sending? How are you currently transmitting it?
Are to collecting the data to a single node and transmitting it, or do send
pieces from many nodes? Are you familiar with using pvserver with mpi, or
do you use paraview gui standalone? If you're prepared to
If you mean the vtkSurfaceReconstructionFilter, you have to import the
imaging module:
from paraview.vtk.imaging import vtkSurfaceReconstructionFilter
Pat
2012/3/13 Aurélien Marsan aur.mar...@gmail.com
Dear Paraview users and developers,
I would like to use the *vtkReconstructionFilter*
Atanasov
On 02/25/2012 09:12 PM, Pat Marion wrote:
Hi,
Perhaps this python programmable source example will be helpful:
http://www.paraview.org/Wiki/ParaView/Simple_ParaView_3_Python_Filters#Producing_Image_Data_.28Source.29
Pat
On Sat, Feb 25, 2012 at 8:39 AM, Atanas Atanasov atana
Hi,
Perhaps this python programmable source example will be helpful:
http://www.paraview.org/Wiki/ParaView/Simple_ParaView_3_Python_Filters#Producing_Image_Data_.28Source.29
Pat
On Sat, Feb 25, 2012 at 8:39 AM, Atanas Atanasov atana...@in.tum.de wrote:
Hello.
i want to create a source
Hi Giulio,
After applying Table to Points, you should have a dataset with R, G, and B
data arrays. You could use the the Python Calculator filter with an
expression: [R, G, B] to combine the three arrays into a single array, but
ParaView will only color points if the array type is unsigned
Hi Adriano,
KiwiViewer doesn't recognize the vtm file extension, I overlooked that
one. We'll add it in the next version. In the meantime, please take a
look here-
http://www.vtk.org/Wiki/VES/KiwiViewer_Scene_File
And thanks for your review in the Android market!
Pat
On Tue, Feb 14,
Hi VTK developers,
I'm emailing to let you know about the open source release of VES and Kiwi.
http://www.kitware.com/news/home/browse/Kitware?2012_01_19Kitware+Announces+Open-Source+Release+of+VES+and+KiwiViewer
We hope these libraries and examples will help you develop great new VTK
powered
Dave's right, you can't use python threads in the paraview python shell.
After your while loop exits, control is returned to the Qt event loop and
the python thread has no chance to cycle. It might work if you try
pvpython instead.
You could also try a plugin I wrote last year... you have to
in Matlab or Excel. If you
have a better method, I am still interested.
Thanks
From: pat marion [pat.mar...@kitware.com]
Sent: Tuesday, November 29, 2011 8:31 PM
To: Ian Leslie
Cc: paraview
Subject: Re: [Paraview] Calculate the distance between many
line and a Delaunay2D plane? Then I could just find the
difference in the Z direction of the coordinates.
Thanks for your help, its given me a few more ideas.
Ian
From: pat marion [pat.mar...@kitware.com]
Sent: Sunday, November 27, 2011 6:10 PM
That's right, you're missing the python bindings for
vtkFileSeriesReader. You can get them by importing the proper python
bindings library. Depending on your version of paraview, it will be:
import libvtkPVVTKExtensionsPython
or for paraview 3.10 and earlier:
import libvtkPVFiltersPython
Pat
You can apply the 'Generate Surface Normals' filter to your Delaunay2D
output to compute normals for each point in the dataset. If you look
at the output of 'Generate Surface Normals' in the Spreadsheet view,
you can see the computed normal values. I'd expect each point to have
the same normal,
Hi Markus,
What you're trying to do is discouraged, you shouldn't attempt to access
proxies from within the programmable filter. If you were running paraview
in a client-server setup, it would not work because the filter and its
proxy would exist on different processes.
Anyway, here's some code
Hi Mike,
You need to install NSIS, then re-run cmake.
http://nsis.sourceforge.net/Main_Page
Next, take a look at the Windows instructions under the Generate Package
section here:
http://www.paraview.org/Wiki/ParaView:Build_And_Install#Generate_Package
Pat
On Sat, Nov 12, 2011 at 11:09
That's right, if the output has no point or cell data, then assigning the
ColorArrayName property will throw an exception. It's kind of an annoying
behavior. So I'll work around this by writing code such as:
if mySlice.GetDataInformation().GetNumberOfPoints():
rep.ColorArrayName='p'
Pat
Hi Christian,
You won't be able to do this from python. In the ParaView GUI, the Qt
event loop has control over the application flow, not python, so python
threads do not work. You'll need a Qt based solution. Does your reader
plugin include any Qt components? It only takes a few lines of
I can reproduce it, yep.
Pat
On Thu, Nov 10, 2011 at 4:09 PM, David Thompson dcth...@sandia.gov wrote:
Was anyone able to reproduce this? If so, I'll file a bug.
David
On Nov 4, 2011, at 9:39 , Thompson, David C wrote:
Hi all,
I've been fiddling with ParaView 3.12 RC3 and
you showed is awesome. Can I also add keyboard interaction
with the render window?
On Tue, Nov 1, 2011 at 3:52 PM, pat marion pat.mar...@kitware.com wrote:
Actually, if you follow the steps from this email, you can interact with
the render window from pvpython:
http://markmail.org
Actually, if you follow the steps from this email, you can interact with
the render window from pvpython:
http://markmail.org/message/sjt6pbkyc56l2wgl
Pat
On Tue, Nov 1, 2011 at 10:24 AM, Utkarsh Ayachit
utkarsh.ayac...@kitware.com wrote:
pvpython cannot be used for interactive viz
You can use the python console instead of a plugin, if you want. Open the
python console under the Tools menu and execute:
filename = foo.facet
import vtkIOPython
r = vtkIOPython.vtkUGFacetReader()
r.SetFileName(filename)
r.Update()
t = TrivialProducer()
Hi Greg,
I may be out of touch with some recent paraview developments, but I have
never seen this behavior before, it sounds like a bug to me. Output from
code that is executed in the python console, which includes python macros,
should always be routed to the python console, not paraview's
it was
created via the gui), then your example produces an empty list. The
PlotData filter created in the macro does show up on the screen and look
correct; but the series names aren't accessible.
Does this provide any useful clues?
Thanks.
Greg
On 10/06/2011 11:49 AM, pat marion wrote
Thanks for sharing, Luca!
Pat
On Mon, Oct 3, 2011 at 12:08 AM, Luca Giannelli bil...@gmail.com wrote:
Howdy.
I have been looking through the Internet to find a solution for how to have
the Plot over line
executed automatically through a Python script. I was able to find some
sources here
If you edit the script and move the WriteImage() call to the very end, it
will work if you run the script form the python console in the paraview
gui. Is the script you posted exactly what was generated, or did you move
the WriteImage() while trying to debug it? Also, you're right that it
Is it possible to disable showing the small window which shows the result
of script?
Unfortunatley, no. Paraview can be compiled in a mode to do software
rendering which does not require windows, but the paraview releases don't
have this ability. If you're concerned about speed, it would be
The 'paraview' directory is the module. Python treats directories that
contain a __init__.py file as modules. So you want your python path to
contain /Applications/ParaView 3.10.1.app/Contents/Python, and drop the
/paraview ending.
But, I recommend you use pvpython instead of python. The
Another option, you can use your window manager to automatically move the
windows to a different workspace and they won't get in your way. If you
have compiz enabled, then you can use the Place Windows plugin. Below is a
script that I use to get those vtk windows out of my way. The script
...@kitware.com wrote:
Hi Paul,
I'm pretty sure that this is a bug that also causes problems with
coprocessing. I talked to Pat Marion and he said he was going to try and
fix it which should also fix your problem.
Pat, what's the status of http://paraview.org/Bug/view.php?id=12607
Thanks,
Andy
Hi,
I'm excited to announce Kitware's first entry in the Apple app store.
KiwiViewer is a free, interactive application for exploration of geometric
datasets on multi-touch mobile devices. You can learn more about the app at
the website here:
http://kiwiviewer.org
And here is a press
Could you try one more time, this time do:
cd /path/to/paraview-install
LD_LIBRARY_PATH=lib/paraview-3.10.1 lib/paraview-3.10.1/paraview
And if it still does not work, please post the result of:
cd /path/to/paraview-install
LD_LIBRARY_PATH=lib/paraview-3.10.1 ldd lib/paraview-3.10.1/paraview
If you use the python programmable filter, you can create it set the
filter routine (python code) via a python macro on the GUI. If the data you
are trying to manipulate on the GUI is small, you could encode it in a
string and set it in the body of the python programmable filter.
Pat
On Wed,
Hi Vincent,
Unfortunately python trace does not capture all the screenshot parameters.
However, if you modify your python script you can accomplish this by setting
the view.StereoType property before the call to WriteImage().
Try:
view.StereoType = Left
WriteImage(left.png)
view.StereoType =
1 - 100 of 302 matches
Mail list logo