is there a script like this one

hello all .......
i am looking for a script that would allow me to change the colors of the leaf......
i ran into Unique Material ID....but i cant figure it out.
can some one please tell me if there are any script that would do this?

AttachmentSize
uniquematerialid_tree_thumb.jpg276.92 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anubis's picture

Oh, I seen this script some

Oh, I seen this script some time ago, it enumerate elements (e.g. 1,2,3,4...) not randomize them. And yep, the main objective of Detach Elements was to speed up applying of variety materials to leafs, bricks, etc.

I prefer to detach elements, it's faster and this way I have better control - I can select desired elements or if I need randomization to use my Random(De)Select script and assign material to selected, and at the end (after attaching) I'll have condensed ID's.

my recent MAXScripts RSS (archive here)

veneta's picture

Interesting scripts, however

Interesting scripts, however here is how I do this with Anubis script 'Detach Elements':
http://www.scriptspot.com/3ds-max/scripts/detach-elements

-- Randomize matID's by element in 3 steps:
-- 1. Run Detach Elements with this options:
----- without converting to mesh
----- without grouping
----- without keep source object
-- 2. Still the new objects is selected (deselect point helper only),
-- and run this code...
for obj in selection do
(
    polyop.setFaceMatID obj {1..(polyop.getNumFaces obj)} (random 1 20)
)
-- 3. Attach them back
Script_Butler's picture

@ JokerMartini, it's from

@ JokerMartini, it's from here. http://www.cg-source.com/uniquematerialids.php. You need to register and login to download the script. You use it in conjunction with the MultiTextureMap script which assigns a selection of maps to an object the has different ID's.

@ bluebiablito... What's wrong with the Unique Material ID Script? Can you explain why it won't work or what happens? As I said above, you need to use it in conjunction with the MultiTexture Map.

Basically, run the UniqueMaterial ID on an object. It has to be an editable mesh or poly. This will give an ID to each element.

Then use the MultiTexture map in the diffuse, choose a selection of maps and then change the settings.

Let me know if you struggle still.

Cheers.

Script_Butler

JokerMartini's picture

Where did you get this image

Where did you get this image from?
I'll look into trying to figure something out!

John Martini
Digital Artist
http://www.JokerMartini.com (new site)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.