[Paraview] "Rotate" look up table

Nicolas Cedilnik nicolas.cedilnik at inria.fr
Fri Feb 3 03:47:07 EST 2017


Hi all,

I'm replying to my own email because I worked out a solution and wanted 
to share but also because I believe what I'm doing is FAR from optimal 
and hope that someone
> Would it be possible with python scripting to create an animation by 
> "rotating" the look up table in a way that would look like this: 
> https://www.youtube.com/watch?v=qA_vInXwdKM#t=3m25s ? It is a 
> pseudo-animation created by changing the "range" of the LUT.
So I made this python script (see attachment) that generates different 
meshes with scalar values "rotated" (I don't find a better term to 
describe what I'm doing).
It works and make it easy to play the animation by opening the produced 
vtk files as a sequence in paraview.

However, every vtk file contains both the mesh geometry and the scalar 
values, but only the latter change. What would be the right way to 
animate only the scalar values and not the mesh geometry? What data 
format should I use? How could I import it into an animation in paraview?

Thanks for your guidance

-- 
Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rotate_scalar_values.py
Type: text/x-python
Size: 1287 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170203/ac2f8010/attachment.py>


More information about the ParaView mailing list