Hrm, I can find that command in the node reference but not the Python Api
commands.

I was hoping it took U and V as inputs so I could iterate over the entire
surface and sample each points Y axis, then spit it out to a bitmap.

Like a height map I guess.

On Wed, Jul 21, 2010 at 2:37 AM, shawnpatapoff <[email protected]>wrote:

> There is also closestPointOnSurface node. I think that works for
> poly's.
>
> On Jul 18, 7:24 pm, Adam Miels <[email protected]> wrote:
> > 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
>

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

Reply via email to