[Paraview] programmable filter in a python script

2013-11-26 Thread joseph insley
Hi, I am guessing that there must be a trivial way of doing this, but I have yet to discover exactly how. I have a python script that I pass to pvbatch, which includes a ProgrammableFilter. I originally generated this from the GUI, where I could fairly easily edit the script of the

Re: [Paraview] programmable filter in a python script

2013-11-26 Thread joseph insley
Thanks for the pointers. Another naive follow up question.. The script of my programmable filter starts with: input = inputs[0] This works fine when the script is defined inline, but when I import it from an external file, inputs is not defined. How do I get around this? Thanks, joe On

[Paraview] bug in .py save state

2013-10-15 Thread joseph insley
Hi, It looks like there is a bug in the naming of objects when the state is saved as a python state file. ParaView appears to parse the guiName given to a filter to remove special characters when creating the name for objects in the state file. In my case, I create two contour filters, one

Re: [Paraview] outline source in pvbatch

2013-09-24 Thread joseph insley
, Sep 24, 2013 at 12:30 PM, joseph insley ins...@anl.gov wrote: Thanks, Utkarsh, This did solve the problem with creating the Outline source. Once created, though, I am subsequently having trouble updating it by calling SetBounds(). Do I need to cast Outline1 as an Outline source

[Paraview] outline source in pvbatch

2013-09-23 Thread joseph insley
Hi, I'm having trouble using pvbatch with a python state script that contains an Outline source. The full script is below, but in brief, I started paraview, added an Outline source, using the default settings, and then saved state as a .py file. When I try to run pvbatch with this state

Re: [Paraview] time step from within a programmable filter

2013-09-12 Thread joseph insley
().Get(vtk.vtkDataObject.DATA_TIME_STEP()) or t = self.GetInputDataObject(0,0).GetInformation().Get(vtk.vtkDataObject.DATA_TIME_STEP()) On Thu, Sep 12, 2013 at 4:03 PM, joseph insley ins...@anl.gov wrote: Hi, all, I believe there must be a way to do this, but thus far all of my attempts

Re: [Paraview] Viewing 2D glyphs

2013-05-17 Thread joseph insley
Hi, Raquel, It is tough to know exactly what is going on without knowing all of the details of the data and the filter settings used, but there are two potential things that initially come to mind. One is the Mask Points checkbox for the glyph filter. If this is on and your data set is

Re: [Paraview] Assign scalars/vectors to mesh points in vtkRectilinearGrid, C++

2013-04-02 Thread joseph insley
Hi, Paw, I believe the problem is that you are mixing calls for scalars and vectors… For scalars you want to use SetNumberOfValues()/SetValue(): vtkIntArray* temperature = vtkIntArray::New(); temperature-SetName(Temperature); temperature-SetNumberOfComponents(1);

Re: [Paraview] build error with boost and additional questions

2012-03-27 Thread joseph insley
Hey, Amit, FWIW, I know that in the past (pv3.10 and pv3.12) I have run into issues when client/server plugins don't match. This was a problem when using a binary distribution of the client, which included many (all?) of the reader plugins, against a pvserver that I built which did not

Re: [Paraview] pseudo random glyphs

2012-02-09 Thread joseph insley
-boun...@paraview.org] on behalf of joseph insley [ins...@mcs.anl.gov] Sent: Wednesday, February 08, 2012 4:17 PM To: David E DeMarle Cc: ParaView Subject: Re: [Paraview] pseudo random glyphs Thanks, Dave, That worked great for the case where I have a vtkUnstructeredGrid of tets, where

[Paraview] pseudo random glyphs

2012-02-08 Thread joseph insley
Hi, Is there a way to generate pseudo-random glyphs on an unstructured grid (or I guess any object for that matter), for time series data? That is, randomly select the points to use, but then use the same points for each time step. If I understand it correctly, not checking the Random Mode

Re: [Paraview] pseudo random glyphs

2012-02-08 Thread joseph insley
the glyph with custom source filter. David E DeMarle Kitware, Inc. RD Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Wed, Feb 8, 2012 at 4:56 PM, joseph insley ins...@mcs.anl.gov wrote: Hi, Is there a way to generate pseudo-random glyphs

Re: [Paraview] ANN: ParaView 3.12.0 RC-2 available for download

2011-10-04 Thread joseph insley
Hello, I have a question about the source distribution of 3.12.0 RC-2. I understand from a message from Utkarsh back in August that the way that version numbers are determined has changed, and now requires a call to git describe. After downloading the source tarball from

Re: [Paraview] reader plugin in pvbatch

2011-09-23 Thread joseph insley
that help? Utkarsh On Wed, Sep 21, 2011 at 9:24 PM, joseph insley ins...@mcs.anl.gov wrote: Hi, I have a custom ParaView reader plugin that I've written, which works as expected when loaded and used through the GUI, but I'm having trouble getting it to work with pvbatch. I have tried

[Paraview] reader plugin in pvbatch

2011-09-21 Thread joseph insley
Hi, I have a custom ParaView reader plugin that I've written, which works as expected when loaded and used through the GUI, but I'm having trouble getting it to work with pvbatch. I have tried a couple of different approaches, with varying degrees of success. The one that gets furthest is

[Paraview] Cosmo Reader - 64bit IDs

2011-08-31 Thread joseph insley
Hi, I have some large data sets in the Cosmo format that I'd like to visualize with ParaView, but the format is slightly different from that expected by the built-in CosmoReader. Because the data sets I have use a very large number of particles, they use a 64bit int for the ID tag, rather

[Paraview] orientation of color legend

2011-06-14 Thread joseph insley
Hi, This is probably a silly question, but is there a straightforward way to change the orientation of a color legend from the default of vertical to horizontal? I typically end up interactively resizing it until I somehow magically get it to flip orientation. Is there a checkbox in the GUI

Re: [Paraview] orientation of color legend

2011-06-14 Thread joseph insley
Laboratories *** *** *** *** email: kmo...@sandia.gov ** *** ** phone: (505) 844-8919 *** web: http://www.cs.unm.edu/~kmorel On 6/14/11 4:02 PM, joseph insley ins...@mcs.anl.gov wrote: Hi, This is probably a silly question, but is there a straightforward way

Re: [Paraview] 3D Glyph Reduction

2011-05-26 Thread joseph insley
You could try using the Clean filter to merge redundant points, and play with the tolerance to further reduce complexity. On May 26, 2011, at 3:04 PM, Brian C. Panneton (CONTR) wrote: I'm using custom polydata saved to obj/ply files that was used for other projects. The other projects needed

[Paraview] Using XDMF to extract data from multi-dimensional array

2011-05-02 Thread joseph insley
Apologies for cross-posting, I'm hoping that someone from one of these two lists can help with my problem. I have an hdf5 file which contains a number of Datasets, and I'm having trouble pulling out a subset of one of them. An h5ls of the file looks something like this: Var1Dataset {64,

[Paraview] Hidden objects in povray export

2010-09-08 Thread joseph insley
Hi, I have recently started experimenting with exporting data objects in ParaView as povray files, and have run into the following issue. I have an unstructured grid dataset, from which I generate some streamlines and cutting planes. Inside ParaView I hide the original data and view

Re: [Paraview] paraview - client-server

2010-02-05 Thread joseph insley
Hey, Berk, I will need to dig around for them, but I have a few scripts that I have used to do this. Here is the basics of how they work. We have a scheduled resource that requires OTP. I have a script that I run on my local host, which will first prompt me for how many nodes and how