ScriptSpot

Forum topic · General Scripting

Select by material

By Lareon · 2012-05-22

Description

Hi guys,

i have a slight problem.

i'm trying to make a script that performs a few functions based on a gui, I have all of the functions down except one:

i need to collect all of the materials in the scene
then replace the first three materials with a specified set and all the rest with another material
after this i want it to select the next set of 3, apply the same materials as before and invert this selection to apply the other material to the remaining materials

and so on until all materials have been used.

i'm not really sure how to start on this, any tips would be greatly appreciated.

thanks!

Comments (1)

barigazy · 2012-05-22

Can you do some screenshots.I don't undrstand what do you want to achive.