do not load maps into viewport
I have a script that loads a bunch of materials from a materiallibrary and assigns them to different objects in the scene. It works well, but when there are huge maps inside the materials, I get some performance problems: Max will freeze after assigning the materials for several minutes. I am pretty sure that this happens, because it loads all maps to show them in the viewport. It does not happen with simple materials.
Is there any way to prevent that from happening? I tried to assign all materials in an
with redraw off( ) context and I also tried to change all materials to
material.showInViewport = false but both did not help.