FORUMS: list search recent posts

Scripting bevel plus - how to get the caps?

COW Forums : Autodesk Maya

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Joe Wheeler
Scripting bevel plus - how to get the caps?
on Aug 12, 2008 at 3:09:17 pm

Hi all,

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.

Thanks for reading.

J


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]