How can i create a animation on a 3d object with texture change ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By KallelFiori

I have a 3d model with a blinking animation on the eye, but, that blinking animation is on the texture, how can i set this up in a convenient way?

I tried to make a script to change the albedo texture in a period of time. I created a timer with wait_time = 1/FPS and if the timer calls the time_out signal it changes the texture, but doing this way does not work correctly, the texture blinks before it changes.

Im inclined to think that i maybe need to make this on a shader, but i have no idea.

:bust_in_silhouette: Reply From: spaceyjase

If you have a texture (e.g. open, closed), add a material to the mesh surface and animate the albedo texture.

This might depend on how the mesh is configured (etc) but that’s the simplest way to do it.