[Paraview] change background color based on a data variable?
Felipe Bordeu
felipebordeu at gmail.com
Wed Sep 7 05:12:46 EDT 2016
You can use the animation view with a "Python Animation Track" script like
this:
def start_cue(self):
self.t = 0
def tick(self):
from paraview.simple import *
renderView1 = GetActiveViewOrCreate('RenderView')
renderView1.Background = [self.t, 0.42745098039215684, 0.023529411764705882]
self.t = self.t+0.1
def end_cue(self): pass
of course you have to the script to you needs.
Felipe
2016-08-30 18:18 GMT+02:00 Hart, Cynthia Joyce - (cyndyb) <
cyndyb at email.arizona.edu>:
> Hi folks. Another ignorant question. (and Thank You to Burlen Loring
> for his assistance with my last question)
>
> I have created an animation of a time series of some months of several
> temperature sensors. It is desired by the end user of this visualization,
> to show the diurnal cycle as the animation goes by, by changing the
> background color from blue to through to black as the days so by. I can
> use the time values in the data table that contains my sensor data as a
> variable to determine a color by, but I don’t know what/or if there is, a
> filter to use to do this readily; that is, as a control of the background
> color. If anyone can give me some direction, I’d appreciate it much.
>
>
>
> Thank you,
>
> Cynthia
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160907/436ec885/attachment.html>
More information about the ParaView
mailing list