eebling
12-08-2012, 11:54 PM
Hey all, been searching forums and going through maya docs and cant find a solution. Im using mel, dont know python, so if possible, let me know a mel solution if one exists. Here's the problem, im selecting a face on a poly mesh, then converting the selection to the faces uv's and running some math proc to get the mid point of the uv's so i can place a follicle at the center of the face. This works fine, however the uv center isnt always the actual center of the poly face. Some of the uv layouts are nice and equal but the faces may have been distorted through say a lattice or deformer so placing a follicle at the middle UV value doesnt represent the face's actual center. So My idea is to select the face, convert selection to the verts, run the same math to find what the center value of the face is, but then I need to find what the corresponding UV value is from that world space center point. This is where i hit a dead end. Cant seem to find anyway of passing a point on a face to some function or command and return what the corresponding uv position is. Any one have idea's.?? Hopefully in Mel, but if it is possible to do so in python then maybe this will be what finally convinces me to open my python for dummies book and learn it.!
Thanks for any info.
E
Thanks for any info.
E
