Notifications
Clear all
[Closed] assign mat id's to objects
Oct 25, 2007 2:27 am
hey,
scenario: 10 boxes in one scene, 1 multi/sub object material with 10 materials inside it.
I want to be able to select the 10 boxes in the viewport and then it assigns a material id to it.
Therefore I have 10 objects with 10 different materials on it.
I got as far as making a script that pulls images in from a directory and puts them into
a multi sub object shader but I’ve hit a wall with this one.
Any help would be appreciated!
1 Reply
Oct 25, 2007 2:27 am
for i=1 to selection.count do (
addModifier selection[i] (materialModifier materialID:i name:"MaterialMod")
)