Swap Material IDs
Hi people! i am stuck trying to randomly change the materialid id of an editable poly at certain moments. Im attempting to do a piano that change materials of it keys when is animated.
the listener shows this --$.EditablePoly.setMaterialIndex 1 when i do it manually
but doesnt work.
Any body pls?
THANKS!
Comments
.
afaik Face Material ID can't be animated, use animated Material modifier instead.
animate material
oh! i was hoping to animate the keys with mis script and add the material animation at the same time. ill have to use a material modifier within the script. thanks man
aivan
You can also wire the value
You can also wire the value of Material modifier to some animated node like helper or use script controller to set the value dynamically. Here's the example:
THANKS
thanks a lot man! really helped me!
aivan