Notifications
Clear all
[Closed] help max script to assigned id on editpoly
Oct 11, 2012 5:27 pm
I need help with a script that is gonna assigned material id to a editpoly that as multisubobj
base on is number of edge on a poly.
for example triangle give id 1
square give id 2
more then 4 edge id 3
less then 3 edges id 1
1 Reply
Oct 11, 2012 5:27 pm
Try this to get amount of edge by face id
polyop.getVertsUsingFace <Poly poly> <facelist>
And try this to set your face using desired mat id
polyop.setFaceMatID <Poly poly> <facelist> <int MatID>