Notifications
Clear all
[Closed] "Objectset" for Materials?
Apr 20, 2012 7:26 pm
Hi,
Is there any built-in set for materials? just like “objects”, “lights”, etc for nomral scene objects.
The reason I’m asking is, that I’m writing a script to adjust some material values and it’s looping through all OBJECTS and getting their material. Now if I have a Multi/Sub-Material which is on more than one object in the scene, its ajusts the values of each submaterial so many times, cause it does that for every object in the scene which has this material.
So it would be nice to have a object set with all materials of the scene in it…
EDIT: nevermind, got it… sceneMaterials
1 Reply
Apr 20, 2012 7:26 pm
Maybe this can help
for m in sceneMaterials do
(
case (classof m) of (
(Multimaterial): --your code
(Standardmaterial): --your code
(Arch___Design__mi): --your code
(VRayMtl): --your code
)
)