I want to do an animation of a Blender object that changes color over time using a script. I already found out how to change the colors and set the keyframes from a script, but what I would need in addition is a possibility to "translate" the values of the external data (which are temperature values) to corresponding colors with a colormap (like e. g. the Jet colormap in Matlab).
I suppose that there is a simpler solutions than calculating these values "by hand", since I already saw how this can be applied for smoke, but the solution there seems not to be applicable for objects different from smoke.
Thank you again really much for your answers, you are a great help for me!
Edit: the question on the complete task I want to achieve (which has as suggested been split up into several smaller questions) can be found here, where also the application is shown.




One in line 102 saying
name 'false' is not definedwhich I think is simply a spelling mistake, so I changedfalsetoFalse.The other error appears on line 85 and says
– mindm49907 Oct 12 '15 at 10:35AttributeError: 'NoneType' object has no attribute 'nodes'. I tried to look deeper into it using pdb, but could no really understand whats going on. Maybe we are using different Blender version? Mine is 2.75. Thank you again for your help!i.e. say I have a surface and also an array of values for each node that I want to color by. I could normalize the values to be 0..1, but without downloading the addon and trying it appears as if this would work by setting one value at a time, i.e. for one node at a time. Is it possible to pass in an entire array of values instead? Similar to how you would use a seperate xyz node to extract the z values to color by?
– Derek Eden Apr 17 '20 at 16:41