Ah, it works for Nurbs Surfaces. Not Poly's.

On Mon, Jul 19, 2010 at 12:13 PM, Adam Miels <[email protected]> wrote:

> Hi All,
>
> I am having a bit of trouble referencing the x,y,z of a pointOnSurface.
>
> I am using:
>
> from pymel.core import *
>
> selObj = ls(sl=True)[0]
>
> infoNode = pointOnSurface(selObj, u=0.5, v=0.5, position=True)
>
> print infoNode
>
> Selecting the polyPlane (which has been modified via sculpt geometry tool
> and deleted history ), and running this script always results in [0.0, 0.0,
> 0.0] regardless of the uv coords or the shape of the mesh.
>
> I also tried applying a planar mapping in case it did not already have uv
> coords.
>
> Can anyone tell me where I am going wrong?
>
> Regards,
>
> Adam.
>

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

Reply via email to