Page 1 of 1

[GUIDE] Getting the material order right.

PostPosted: Tue Feb 23, 2016 2:14 am
by Kubboz
OK, so. You're making a car body model. Or a fixture. Does not really matter. You get it into the game, and you see the materials are all out of whack. It's because the order of material listing is different in every model. Of course, with trial and error you can get the order right, however, it tends to waste time.
However, there is a way to determine what that order is before even starting Automation.

Image
This is the car we will be working on. (It is a sneak peak, everyone).

Image
1.Make a copy. Make sure it IS a copy and not an instance or a reference. It may mess up your original model otherwise. If the car is skinned already, delete the skin modifier from the copy.

Image
2.You see this text box in the bottom left corner? Go into the polygon selection mode of the copy, and copy paste this line into that box:
  Code:
$.EditablePoly.SetSelection #Face #{1}


3.Then, press Enter. This will select the first polygon in the model, according to 3ds max.

Image
4.This first polygon will have a material id. (In this case, 7, corresponding to front paint). Write it down.
5.Next, press the Select ID button to select every polygon with that id (7 in this case). Delete them.

6.Repeat the steps 2. to 5., until you're left with no polygons.

Image
7. You should end up with a list like this. This order is precisely the order that should be in the material listing.

Have fun!

Re: [GUIDE] Getting the material order right.

PostPosted: Tue Feb 23, 2016 2:15 am
by pyrlix
Give this man a medal for that.
No longer I have to trial-and-error the materials for hours

Re: [GUIDE] Getting the material order right.

PostPosted: Tue Feb 23, 2016 4:37 am
by vmo
Great! Thanks M8!

Re: [GUIDE] Getting the material order right.

PostPosted: Tue Feb 23, 2016 4:53 am
by partario
This will surely save a lot of time. Thanks a bunch!

Re: [GUIDE] Getting the material order right.

PostPosted: Tue Feb 23, 2016 9:02 am
by Daffyflyer
Oh man, that's awesome