Best switch colors method


#1

Imagine that you want to show a light which you can switch its color. Several possibilities to do it are available and maybe you can tell us the best one and why ?


How to change material parameters dynamically in HAXE script?
#2

insert a keyframe in the color input, and make it an action in the action editor, and play it using the “play action” node.


#3

We can find a good list here https://blender.stackexchange.com/questions/66646/cycles-animate-the-color-on-part-of-an-object

@sans-iccal
what’s the best and why for you ?

or in other terms what’s preferable to use in which case …


#4

I just like the method listed above because it’s simple, easy, and doesn’t require any new knowledge to experienced blender users.


#5

@sans-iccal ok, thanks


#6

Didn’t you find some difficulties to make it an action and then use it into a Play Action node without getting an error ?

(error = cannot read property ‘animation’ of undefined)


#7

hmmmm, could it be that it isn’t supported? I use that method for texture and material changes, never actually tried the color, lol.


#8

De mon côté, Actually I use the empty coordinates to pilot the fact of a mix shader otherwise I use the SetMaterialSure node.

But the more efficient solution seems to be using tilesheet, even more so if you are targeting a small target ?