Hi all
I need to be able to replace materials on the objects through code.
Example:
I have material "sample_01", which is assigned to many objects and surfaces in the current scene. Now I want all of these objects to assign material "sample_02", then sample_03 etc.
These materials are in the same library, and have a clear structure by name.
My idea:
temp = sample_01.getObjects ();
temp.setMaterial (sample_02);
But the functions of type material :: getObjects in documentation is not found.
Now I look in the direction of Material :: saveState and Material :: restoreState.
Maybe you have any other solutions to this issue?
thanks in advance