PDA

View Full Version : Material randomization


onionringofdoom
04-12-2005, 03:24 PM
Would it be at all possible to take a material and attach some maxscript thingy to it so that it adds random variation to some aspect of the texture? Like, I could have 10 spheres, and one would have a specularity value of 10, another 10.4, another 9.6, another 11, and so on, only they would all have the same material applied. The maxscript would randomly alter whatever value, though. Note that I have never used maxscript before :P

mathew_er
04-16-2005, 03:19 AM
hi, i started with MAXscript just tonight but i found a way to sort this thing.

for i = 1 to $selection.count do (
$selection[i].material = meditMaterials[i];
meditMaterials[i].specularLevel = (random <insert your min value> <insert your max value>);
)
it works with 24 objects maximaly and messes up whole material editor but works http://cgtalk.com/images/smilies/thumbsup.gif. you will need to put this on button.
but im sure there are better solutions http://cgtalk.com/images/smilies/rolleyes.gif

CGTalk Moderation
04-16-2005, 03:19 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.