|
I have written a script that takes the selected object and builds a Multi/Sub material that is shared across the selected objects. Basically, it does what attaching objects does, without actually attaching the objects.
The script does what it’s supposed to do, however the materials visible in the viewport after running the script, do not update correctly.
If I examine the object, the material IDs all match up to the newly created “shared” multi/sub material. That means max is displaying the wrong material on the object.
If I hit the render button, the max viewport suddenly shows the correct material in the viewport. I’m guessing I must be missing a command to update the viewport in some way. “redrawViews()” does not work. :/
Any ideas?
|
|
|