[Paraview] Python scripting - displaying results on a FE mesh
Jean Favre
jfavre at cscs.ch
Tue Jun 17 06:09:43 EDT 2008
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"
--
Jean
Swiss National Supercomputing Centre
More information about the ParaView
mailing list