[Paraview] Python scripting - displaying results on a FE mesh
Robert Cimrman
cimrman3 at ntc.zcu.cz
Tue Jun 17 06:47:49 EDT 2008
Jean Favre wrote:
> On 17, Jun 2008 11:57 AM, Robert Cimrman <cimrman3 at ntc.zcu.cz> wrote:
>
>> how do I say that I want to apply e.g.
>> Glyph filter to 'u' and color the mesh by 'p'? How to get to the data?
>>
>
> How about the following code:
>
> dssf = filters.DataSetSurfaceFilter()
> view = CreateRenderView()
> display = CreateRepresentation(dssf, view)
> lt = rendering.PVLookupTable()
> display.LookupTable = lt
> display.ColorAttributeType = 0; # Point Data
> display.ColorArrayName = "p"
Hey, thanks, that's it! I thought that the name "Elevation" in the
example by Utkarsh is just an arbitrary name... I have tried
DataSetSurfaceFilter but without this piece of knowledge all stayed white...
best regards,
r.
More information about the ParaView
mailing list