This worked great, I noticed a few things 1) when SL says more than 8 faces to a prim, what they do is create 2 prims, with the first 8 faces on the first prim and the next 8 faces on the next prim and so forth (programmatically, it is 2 prims, but somehow the land impact is less than if the prims were brought in separately). 2) since the sort order is alphabetic, the 10th face is face 0 of the first prim, not the first face (1). The way to fix this is to 0 pad the numbers, so it would be 001,002, …, 010, 011, …
Not knowing zScript very well but something like this
[VarDef, prePend, “”]
[if, counter < 10,
[VarSet, prePend,
[StringMerge, “00”, counter]],
[if, counter < 100,
[VarSet, prePend, [StringMerge, “0”, counter]],
[VarSet, prePend, counter]
]
(This is just from reading the documentation, and probably doesn’t compile)
and 3) Though it works the way you have it now, and doesn’t act any differently than when i manually added the materials to the materials list at the top, technically they should be listed.
I want to Thank you for the quick turnaround on this, I believe this will help the Mesh content makers of SL that use zBrush very happy (i suspect that they will ask for a back fill to version 4.6, but like i said to my graphic artist, “just upgrade now that this tool works with SL”), If you want someone to look over and mod it more, feel free to contact me as I have spent a long lifetime as a programmer.