Arrange materials in Poser 9?
3WC
Posts: 1,105
I'm creating a prop with many materials. In my modeling program, I had the option to display them alphabetically. When importing the obj file to DAZ Studio, the materials show up alphabetized in the surfaces tab. In Poser 9, not so much. They seem to be random, I'm thinking maybe they are displayed according to the order I created them on the model.
Is there an easy way to rearrange them to display alphabetically in Poser 9. Or an easy way to edit the cr2 manually so the materials are alphabetical there?
Comments
Poser has never displayed material names alphabetically, and yes, it's really annoying. What it does is take the names in the order they're listed in the .obj file. If you check the .obj in Notepad, you'll see the order is identical.
mac
So basically the only solution would be to text hack the obj file, which may be hazardous. :)
There's trick you can use, and I haven't done it for years, so my memory may be faulty, but I'll try to outline the steps.
Make a plane and divide it up. Say you have 11 materials - divide it into 12 and delete 1 polygon. Then assign a material to each polygon (corresponding to your own material names, naturally). Then save it (I use the name 'blank.obj'), and add it to the figure obj by saving them together.
Now edit the .obj file in notepad. First, find your polygon group (look for 'g blank' no quotes)- it should be just a few lines with all the material names listed. Cu/paste the whole group so it's at the top, above the other groups, then if necessary, re-arrange the lines to get the materials in the order you want them, then resave the file.
You'll have to make a new 'blank' body part for it in the .cr2 or Poser won't see it. Set it to invisible and locked so the user won't see it or move it around. The figure should now load in Poser with the materials in the order you want them.
It sounds a bit of a hassle, but it's actually not that difficult to do. It doesn't add much to the fig (X number of polys), and it guarantees correct material order. Also, once you done it, you can use it for any new figures.
mac
Ha! I had a sudden thought. I'd been looking for the old 'blank.obj' I kept to use, but couldn't find it. I must have dumped it years ago. However, I found an old .obj file I'd used it in. So here's what mine looked like.
As you can see, it's one poly for each material, and hardly adds any size to a file at all.
mac
And here's the blank body part. It doesn't need any channels since no one's going to move or rotate it, and they only add useless size to the .cr2. Just the basic code to let Poser know it's there. It's already hidden and locked.
You could actually copy/paste this code into a .cr2. The 1st part goes in the geometry block, and the 2nd part in the main block. (Put them in as the first geometry/body part in each section, after BODY and the CenterOfMass stuff).
Out of curosity, I checked that figure in Poser and DS. The blank body part doesn't show in the scene pane in DS as a body part. It doesn't show in the body parts list in Poser either, but it is in the Hierarchy pane for some reason. Not that it matters, since nothing can done with it.
mac
You just blew my mind. I might have to try this out, see if I can wrap my brain around it. Thanks.