[Paraview] Programmable filter python and GUI

2010-10-12 Thread Brockmann Patrick
Hi, I really appreciate the programmable filter in python. It is really powerfull. Now, is there a way to add GUI controls to a programmable filter ? Let's say I want to propose to users a file selector, or the control of a parameter. I use Paraview 3.8.1 Patrick

[Paraview] paraview python shell

2010-10-12 Thread Kristina SilverbÄge
Hi, I have write i python shript. It working fine in IDLE. But I want to run it in the paraview python shell. I think the problem is that I use a relativ path and not a absolut one. How do i do to make the python shell use relative paths? when I use os.listdir('.') I allways get the same

[Paraview] How to add vector/scalar field as attributes to a vtkPointSet (vtkPolyData, ...)?

2010-10-12 Thread R M
Hi, Like the title say, I would to like to add some attributes to a vtkPointSet (vtkPolyData and vtkUnstructuredGrid). The attributes are vector(2D, 3D,...) field or scalar field. For a scalar Field, If I want to add an attribute to the cells , I do: output-GetCellData()-AddArray( data) and

Re: [Paraview] Fwd: Interpolation problem

2010-10-12 Thread Andy Bauer
I think this is a rendering issue and not an interpolation issue. From the 2d plot you can see that it's properly interpolating the values. I think the quadrilateral is getting rendered as 2 triangles in which case the diagonal values appear to be constant since the 2 end points are at the same

Re: [Paraview] How to add vector/scalar field as attributes to a vtkPointSet (vtkPolyData, ...)?

2010-10-12 Thread Andy Bauer
For the velocity array you'll need to set the number of components. You probably want to set the number of components to 3 for both 2D and 3D so that ParaView can manipulate the vector quantities (for 2D just set the last component to 0). Using the glyph filter will give you arrows for showing

Re: [Paraview] Programmable filter python and GUI

2010-10-12 Thread Brockmann Patrick
Aurélien Marsan wrote: You can create a .xml file, that you will load as a plugin. See Examples/Plugins/HelixSource. Thanks to point to this example. 3 more questions. * When the script is long, it is not convinient to implement it inside the XML file. Is there an example to use a import

[Paraview] import PyQt4.QtGui DLL load failed

2010-10-12 Thread m . c . wilkins
Hi, I'm sorry if this is answered elsewhere, I have googled around, but not found anything that actually fixes the problem. I have Windows XP SP2, completely fresh install, I just installed it in my virtualbox. The only things on the box are virtualbox tools, paraview 3.8.1 which I just

Re: [Paraview] import PyQt4.QtGui DLL load failed

2010-10-12 Thread Dave Partyka
Humm, It was not my intention to package PyQt4 in the Windows installer. Quite frankly, I will mostly likely rerun the package step and make sure that those site-packages are not included. Regardless, nothing in ParaView uses PyQt. I had it built on my system when I was building the VisTrails

Re: [Paraview] import PyQt4.QtGui DLL load failed

2010-10-12 Thread Dave Partyka
That said, I have a feeling your error is most likely Visual Studio runtime related as I can import that module with no errors on my home Windows 7 machine with no development tools installed. Upgrading to SP3, installing the runtime redistributable at the system level (

Re: [Paraview] import PyQt4.QtGui DLL load failed

2010-10-12 Thread m . c . wilkins
Hi Dave, On Tue, Oct 12, 2010 at 10:06:46PM -0400, Dave Partyka wrote: Upgrading to SP3, installing the runtime redistributable at the system level ( http://www.microsoft.com/downloads/en/details.aspx?FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1bfdisplaylang=en), done, and it worked! thank