Take a look at this to see an example of getting a selected mesh and
iterating over it with Python:

http://www.rtrowbridge.com/blog/2008/12/09/maya-python-api-getting-mesh-data/

The particular function you want to call is not getPointFromUV but
getPointAtUV I dont see a getPointFromUV function as part of
MItMeshPolygon of MFnMesh. As far as which one to use, use whatever
you can. Often you can do things many ways just like in MEL or
whatever you have used. Another thing you need to know is that
getPointAtUV needs to be passed a Python float2 pointer for the second
argument. To learn about how Python deals with pointers/references
read here:

http://www.rtrowbridge.com/blog/2009/02/15/maya-api-docs-demystified-for-python-users/

Hopefully that will help you figure out what you are trying to do.

RyanT
Technical Artist
www.rtrowbridge.com/blog
Naughty Dog Inc.



On Feb 25, 10:22 pm, "hindl...@gmail.com" <hindl...@gmail.com> wrote:
> Hey everyone! I was wondering if anyone had any experience with this
> command?
> It seems to be just what I need ( getting a mesh point from uv ) but
> all of the help files I have seen so far have just been in c++ . Has
> anyone given this a go in python?
>
> Also, there is one in mfnMesh, as well as mitMeshPolygon, any thoughts
> on the difference?
>
> Thanks in advance,
>
> Ben
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to