I'm pretty new to Maya so forgive me if this is a dumb question...
Basically I'm trying to write a python script that will:
1. import an arbitrary ai file
2. extrude it (I'm using bevel plus)
3. assign different materials, front, back and side faces
4. export the model as a collada file
I've got the script working, except for the bit that applies the materials. The problem is I can't work out how to consistently assign materials to the caps bevel plus creates.
So far, I've worked out that bevel plus creates the caps last so I've been using polyEvaluate to get the face count and then using, face count -1 to get the front, and face count -2 to get the back. The problem is, this only works with simple, single shape curves. For example, if my initial curve is lower case "i", only the stork of gets the correct the materials assigned, the dot gets missed.