Is there a way to apply a material from within a SimpleMeshMod without triggering and recursive loop of the object changing?
When the Enable button is pressed, i want the material applied, otherwise I'm planning on then restoring the original material. But i can't even get the temp material applied without it crashing. Do i need to store the material in a local variable and not the param block?
clearlistener()
plugin simpleMeshMod myMaterialModifier
name:"MaterialModifier"
classid:#(0x491fdf76, 0x7493038e)
(
local tempMaterial = MultiSubMaterial()