zinMetaBalls
 
 

Description:
This is a little tool of randomly assignning a number of materials to a number of objects. There is an alternative way of doing this using switch node in Hypershade. However, I just wanna to have a simple one off way to get the job done.

 
 

Installation:
Simply copy the downloaded Mel script to
C:\Documents and Settings\User\My Documents\maya\2008\scripts\
source the script from Maya Script Editor and run it by typing zinRandomMatAssign and hit enter key
Compatible to Maya 7.x and above.

 
 

Usage:


1) Start off with selecting a number of materials from hypershade. Hit Select Materials to load them into memory.

2) Select any number of objects, then hit Select Objects to load them into memory.

3) Hit Random Assign button and see it applied to the objects. You could hit the Random Assign button again and again till you are happy with the randomness.

4) Reset Materials button will assign the default lambert1 materials to the selected objects.

5) Clear memory to empty the memory used to store materials and objects names.