Re: [Paraview] [EXTERNAL] bug report: copy and paste into python

2013-11-01 Thread Pat Marion
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

Re: [Paraview] Hello, i need your help

2013-10-24 Thread Pat Marion
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

Re: [Paraview] Hello, i need your help

2013-10-24 Thread Pat Marion
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

Re: [Paraview] Paraview Epoch Function?

2013-10-24 Thread Pat Marion
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:

[Paraview] Importing all vtk modules with ParaView

2013-07-16 Thread Pat Marion
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

Re: [Paraview] Example project: vtk libraries, python wrappers, paraview plugin

2013-07-08 Thread Pat Marion
. 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

[Paraview] Example project: vtk libraries, python wrappers, paraview plugin

2013-07-05 Thread Pat Marion
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

Re: [Paraview] paraview to kiwi macro

2013-06-19 Thread Pat Marion
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

Re: [Paraview] paraview to kiwi macro

2013-06-19 Thread Pat Marion
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

Re: [Paraview] paraview to kiwi macro

2013-06-19 Thread Pat Marion
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

Re: [Paraview] Python usage

2013-06-18 Thread Pat Marion
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

Re: [Paraview] Two Python Shell questions

2013-06-10 Thread Pat Marion
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:

[Paraview] Announcing VES Android webinar next week

2013-06-03 Thread Pat Marion
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

Re: [Paraview] ParaView 4.0.0-RC2 starts behind current window on OS X Lion (10.7.5)

2013-05-31 Thread Pat Marion
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

Re: [Paraview] ParaView 4.0.0-RC2 starts behind current window on OS X Lion (10.7.5)

2013-05-30 Thread Pat Marion
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

Re: [Paraview] Script driven paraview

2013-05-09 Thread Pat Marion
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:

Re: [Paraview] dynamic variable names in pvython

2013-05-05 Thread Pat Marion
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

Re: [Paraview] Using MobileSocketPlugin to get metadata

2013-04-22 Thread Pat Marion
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

Re: [Paraview] How to display the cellNormals as vectors?

2013-04-16 Thread Pat Marion
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

Re: [Paraview] How to display the cellNormals as vectors?

2013-04-15 Thread Pat Marion
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

Re: [Paraview] python scripting

2013-03-18 Thread Pat Marion
...@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

Re: [Paraview] python scripting

2013-03-18 Thread Pat Marion
/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

Re: [Paraview] python scripting

2013-03-17 Thread Pat Marion
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

[Paraview] Webinar on KiwiViewer and mobile app development using VTK - March 14th

2013-03-13 Thread Pat Marion
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

[Paraview] KiwiViewer v2.0 available now in the App Store

2013-03-06 Thread Pat Marion
[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

[Paraview] KiwiViewer and ParaView

2013-03-06 Thread Pat Marion
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,

Re: [Paraview] Import error with programmable filter

2013-02-25 Thread Pat Marion
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

Re: [Paraview] Import error with programmable filter

2013-02-25 Thread Pat Marion
/**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

Re: [Paraview] 2d dataset, can i use paraview to interpolate values on x, y surface?

2013-02-18 Thread Pat Marion
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

Re: [Paraview] Solved: What happened to the random controls for Mask Points filter?

2013-02-14 Thread Pat Marion
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

Re: [Paraview] running paraview in parallel with a batch script/MPI

2013-02-14 Thread Pat Marion
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

Re: [Paraview] running paraview in parallel with a batch script/MPI

2013-02-13 Thread Pat Marion
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

Re: [Paraview] running paraview in parallel with a batch script/MPI

2013-02-12 Thread Pat Marion
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

Re: [Paraview] Segfault in Python when importing paraview.servermanager and vtk in the wrong order

2013-02-10 Thread Pat Marion
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

Re: [Paraview] Segfault in Python when importing paraview.servermanager and vtk in the wrong order

2013-01-31 Thread Pat Marion
/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

Re: [Paraview] VTK access from python

2013-01-29 Thread Pat Marion
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

Re: [Paraview] VTK access from python

2013-01-29 Thread Pat Marion
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

Re: [Paraview] Segfault in Python when importing paraview.servermanager and vtk in the wrong order

2013-01-29 Thread Pat Marion
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

Re: [Paraview] Using VR-Style input devices, analog input from 3Dconnexion device

2012-12-21 Thread Pat Marion
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:

Re: [Paraview] Python Scripting Memory Overload

2012-12-19 Thread Pat Marion
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

Re: [Paraview] new memory inspector panel documentation

2012-12-08 Thread Pat Marion
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

Re: [Paraview] ParaViewSocketPlugin

2012-12-07 Thread Pat Marion
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

Re: [Paraview] ParaViewSocketPlugin

2012-12-06 Thread Pat Marion
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

Re: [Paraview] new memory inspector panel documentation

2012-12-05 Thread Pat Marion
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

Re: [Paraview] load obj file and display via Paraview python shell

2012-12-04 Thread Pat Marion
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

Re: [Paraview] Embedding Paraview in PyQT based application

2012-11-21 Thread Pat Marion
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

Re: [Paraview] Is there any point to compiling with MPI but without offscreen rendering?

2012-10-19 Thread Pat Marion
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

Re: [Paraview] importing paraview from ipython

2012-10-11 Thread Pat Marion
? 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

Re: [Paraview] Is there any point to compiling with MPI but without offscreen rendering?

2012-10-11 Thread Pat Marion
-- 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

[Paraview] ParaView build options for OSMesa, offscreen rendering

2012-10-11 Thread Pat Marion
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

Re: [Paraview] MacOSX Linking problems

2012-10-11 Thread Pat Marion
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

Re: [Paraview] MacOSX Linking problems

2012-10-11 Thread Pat Marion
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

Re: [Paraview] undefined symbol after successful build

2012-10-09 Thread Pat Marion
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

Re: [Paraview] Is there any point to compiling with MPI but without offscreen rendering?

2012-10-09 Thread Pat Marion
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

Re: [Paraview] undefined symbol after successful build

2012-10-09 Thread Pat Marion
, 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

Re: [Paraview] importing paraview from ipython

2012-10-08 Thread Pat Marion
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

Re: [Paraview] importing paraview from ipython

2012-10-06 Thread Pat Marion
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

Re: [Paraview] Extending PythonManager to execute script from memory buffer rather than file (patch supplied)

2012-09-14 Thread Pat Marion
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

Re: [Paraview] Manipulating Big Data through Python Shell

2012-09-10 Thread Pat Marion
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

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-10 Thread Pat Marion
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

Re: [Paraview] python

2012-07-25 Thread Pat Marion
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

Re: [Paraview] Shaky 3D view

2012-06-16 Thread Pat Marion
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

Re: [Paraview] File Chooser with Python Macro

2012-06-13 Thread Pat Marion
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

Re: [Paraview] Simple script severe slowdown in loop

2012-06-12 Thread Pat Marion
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:

Re: [Paraview] [EXTERNAL] Simple script severe slowdown in loop

2012-06-12 Thread Pat Marion
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

Re: [Paraview] paraview plugins and python

2012-05-02 Thread Pat Marion
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

Re: [Paraview] PVPython: paraview.vtk not the same as vtk

2012-04-02 Thread Pat Marion
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

Re: [Paraview] Modeling a earth sphere

2012-03-29 Thread Pat Marion
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

Re: [Paraview] streaming data to Paraview

2012-03-17 Thread Pat Marion
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

Re: [Paraview] vtkReconstructionSurfaceFilter

2012-03-13 Thread Pat Marion
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*

Re: [Paraview] Distributed source for image data

2012-02-26 Thread Pat Marion
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

Re: [Paraview] Distributed source for image data

2012-02-25 Thread Pat Marion
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

Re: [Paraview] 3D point cloud with color

2012-02-21 Thread Pat Marion
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

Re: [Paraview] ANN: KiwiViewer arrives in the Android Market

2012-02-14 Thread Pat Marion
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,

[Paraview] VES and Kiwi open source release

2012-01-19 Thread Pat Marion
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

Re: [Paraview] Threads in the python shell

2012-01-11 Thread Pat Marion
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

Re: [Paraview] Calculate the distance between many xyz points and a non-uniform 2D plane?

2011-11-30 Thread pat marion
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

Re: [Paraview] Calculate the distance between many xyz points and a non-uniform 2D plane?

2011-11-29 Thread pat marion
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

Re: [Paraview] Python Programmable Filter: Get Filename of Import filter

2011-11-28 Thread pat marion
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

Re: [Paraview] Calculate the distance between many xyz points and a non-uniform 2D plane?

2011-11-27 Thread pat marion
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,

Re: [Paraview] Python Proogrammable Filter - Get Proxy

2011-11-14 Thread pat marion
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

Re: [Paraview] How to Build my own ParaView 3.12.0 Distribution

2011-11-13 Thread pat marion
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

Re: [Paraview] PV 3.12.0 coprocessing problem when using multiple filters

2011-11-11 Thread pat marion
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

Re: [Paraview] Update Button Work-a-round

2011-11-10 Thread pat marion
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

Re: [Paraview] Frustum selection display bug in RC3

2011-11-10 Thread pat marion
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

Re: [Paraview] Paraview Python scripting

2011-11-03 Thread pat marion
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

Re: [Paraview] Paraview Python scripting

2011-11-01 Thread pat marion
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

Re: [Paraview] FW: Dayton

2011-10-14 Thread pat marion
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()

Re: [Paraview] Printing from a macro

2011-10-06 Thread pat marion
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

Re: [Paraview] Changing Chart Series Visibilities from Python

2011-10-06 Thread pat marion
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

Re: [Paraview] How to execute the Plot Over Line with a Python script and export to CSV

2011-10-03 Thread pat marion
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

Re: [Paraview] problem with python script generated by trace for simple plot

2011-10-02 Thread pat marion
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

Re: [Paraview] problem with python script generated by trace for simple plot

2011-10-02 Thread pat marion
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

Re: [Paraview] PYTHONPATH for prebuilt MAC OSX Paraview

2011-10-01 Thread pat marion
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

Re: [Paraview] WriteImage in the background

2011-09-29 Thread pat marion
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

Re: [Paraview] line chart display bug when loading state file

2011-09-29 Thread pat marion
...@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

[Paraview] KiwiViewer in App Store. New open-source library coming soon.

2011-08-24 Thread pat marion
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

Re: [Paraview] Make install still does not work in 3.10.1

2011-06-30 Thread pat marion
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

Re: [Paraview] python shell move data from client to server

2011-06-29 Thread pat marion
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,

Re: [Paraview] Python WriteImage with PNGWriter and select left or right eye for stereo rendering (Crystal Eyes)

2011-06-27 Thread pat marion
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   2   3   4   >