Thanks.
Looking at that, that seems to do exactly what I want.
Thanks for the help.



On Wed, Mar 18, 2009 at 6:05 PM, <[email protected]> wrote:

> Check out the closestPointOnSurface node
>  -----Original Message-----
> From: "[email protected]" <[email protected]>
>
> Date: Wed, 18 Mar 2009 10:52:39
> To: python_inside_maya<[email protected]>
> Subject: [Maya-Python] convert worldspace to object UV cords.
>
>
>
> Hey there guys,
>
> I'm very stuck trying to aquire UV cords of a plane related to a world
> space position.
>
> I have a plane that has an animated grey scale ramp applied to it. I
> have simple cubes randomly placed over the plane. Using the
> colorAtPoint node, I can query the plane for the alpha value of that
> UV coordinate.
>
> But I'd like to know what the UV coordinate of the point where each
> box is positioned to query that UV for the colour information.
>
> LeonTheProfessional started a thread titled - GetPointAtUV problem.
>
> Is there anyway to have a reverse of that method to get a UV point
> based on a worldspace vector?
>
> (cube.x, plane.y, cube.z)
>
>
> I can't find the solution via maya's mel commands, so I feel I need to
> use the API to achieve this, however I don't know how to do it or
> where to look.
>
> Thanks for any help you can give me, it will be most appreciated.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to