[Closed] Attribute Holder update problem
Hi,
I have a problem, here’s what I would like to achieve :
In an animated scene, I put a plane. This plane is mapped with an empty texture. On a dummy I added an attribute holder. I made the script for it. It’s just a slider going from 0 to 22. When the slider changes, it changes the plane’s texture by another one in the material library (23 differents textures). When I move the slider, it works, if I put it on value 12, texture 12 will be shown on the plane in the viewport.
However, if I set some keyframes on this slider and scrub the timeline (or press the Play button), textures don’t change (the slider moves correctly).
If someone has a solution for it, I’d be glad to hear it
Thanks,
Tom
I don’t think that you can animate the changing of a texture, how ever you could build a multisub material and use the material modifier and animate the ID. You could then wire the ID value to the slider.
Thanks a lot, it works.
I can’t believe how simple is this solution… Sometimes I think to complex (no need for scripting in this case).
Tom
Note: and thanks for your PEN_Attribute_Holder, it’s very handy, I use it a lot