Well I'm trying to create a script that collects all the objects with the same diffuse color. I've gotten some of the info I need from other threads. But I'm having trouble on one spot.
So from this thread
I adjusted some of the script and this is where I'm currently at.
(mats= for m in sceneMaterials collect mfor m in mats do (
if m.diffuse == color 150 150 150 do
--So for example I need the mats with this diffuse color to do what action I need below
--Select the all objects with the diffuse color properties above
So I dont know how to go about selecting the objects with the specific diffuse color applied.All I really need to do is select all the materials with this certain diffuse color applied to them and select these objects so I can just apply a new material to them.
mats= for m in sceneMaterials collect m
for m in mats do
( if m.diffuse == color 150 150 150 do
( m.diffuse = color 1 1 1 --So I know something like this works for example.--Just dont know how to go about and selecting the objects in the scene.
Thanks for any help that is posted