[Paraview] Import Preset color scale only if not already loaded

2016-09-08 Thread postgurke
Hello All I haven't been able to find a solution for this, so maybe someone can give me a hint...: I am loading data via a python script into ParaView (5.0) and want to color it with a specific color scale. I can load this scale with the script and apply the coloring as desired but if the scale

Re: [Paraview] Import Preset color scale only if not already loaded

2016-09-08 Thread postgurke
... not just something like it, it is exactly the solution to my problem! Thanks!! :) > Utkarsh Ayachit hat am 8. September 2016 um > 13:29 geschrieben: > > > Something like following should do the trick: > > def HasPreset(name): > presets =

[Paraview] Lock Data Range for multiple attributes

2016-09-09 Thread postgurke
Hello All Sorry to bother you again... I seem to miss something wanting to fix color scale ranges for objects with multiple attributes. For example: I have a vtk-Plane with associated velocity and density values that I can choose for coloring. When I imported the object, I set

Re: [Paraview] Lock Data Range for multiple attributes

2016-09-15 Thread postgurke
Hello Does nobody have a solution for this, or am I missing something obvious? The only thing I can do to fix the color ranges is separate the file into multiple objects, but as one can only look at one at a time anyways (as they are at the same location, obviously) and our model already

Re: [Paraview] Lock Data Range for multiple attributes

2016-09-15 Thread postgurke
Hello Mathieu Thank you for your answer. Unfortunately I don't quite understand :(. I tried to duplicate the first and last point of LUT.RGBPoints (which are initially correct before I look at a different attribute and switch back) - but this does not do the trick. Sorry, I am not used to reading

[Paraview] Opacity mapping and image texture in ParaView 5.1.2

2016-08-23 Thread postgurke
Hello   I have an issue regarding the "enable opacity mapping for surfaces" (in the Color Map Editor) if the ParaView session contains another object that has an image loaded as texture. The problem occurs in ParaView 5.1.2 but not in earlier versions (tested with 5.0.1. and 4.3.1). I am working

Re: [Paraview] Project polygon onto surface

2016-10-25 Thread postgurke
Adam, Have you actually tried the filter? Because I think the output is exactly what you're asking for: the "section" of the surface is the part of the surface where the polyline is proceted onto it, hence a polyline with the regarding topography values for the respective z coordinates. Cheers

Re: [Paraview] View geotiff in Paraview?

2016-10-18 Thread postgurke
Maybe there is a way to achieve what you want for tiff - but I am not aware of it. Would it be suitable for you to convert your data to the Netcdf format? That you can import and then use the warp by scalar filter to show the elevation. This is what I usually do for topography data. Cheers Venke

Re: [Paraview] View geotiff in Paraview?

2016-10-18 Thread postgurke
Hi Adam I usually make a vtp File with just a frame from the image coordinates. Then I can load the image as texture to the plane. Cheers Venke > Adam Dershowitz hat am 17. Oktober 2016 um 17:11 > geschrieben: > > > I have a geotiff that I would like to view in

Re: [Paraview] source name in python view

2016-10-13 Thread postgurke
Hi Felipe Would GetSources(), maybe along with FindSource and SetActiveSource help you? ALL=GetSources() gives you a dictionary of all sources in your session. Cheers Venke > Felipe Bordeu hat am 12. Oktober 2016 um 15:15 > geschrieben: > > > I use python view to

Re: [Paraview] [EXTERNAL] Duplicate Layouts

2016-12-01 Thread postgurke
Hi Tobias You could get the DisplayProperties of all your objects and then set them accordingly in the new render window using the Python Shell. I have written a short script for myself for this task --- however something is not quite correct, as strange colorings sometimes appear after turning

Re: [Paraview] [EXTERNAL] Duplicate Layouts

2016-12-06 Thread postgurke
Hi Tobias Thanks for your feedback. I will use your modifications the next time when I need this. rv1.ViewSize will hold the size of the first RenderView. But I think it doesn't affect the size of the render window, only the view itself. Maybe this is still helpful to you. I haven't done

[Paraview] Registered texture images

2017-11-30 Thread postgurke
Hello,   I am using python scripts to import data into a ParaView (5.4.1) session. In order to keep the texture images in a saved state, I am registering them:   pathToTextureImage='path\\imagefile' Display = Show(testvtp, renderView1) Display.SetRepresentationType('Surface') texProxy =