Re: Nearest Point On Mesh in Maya

130 views
Skip to first unread message

Junaid Iqbal

unread,
May 9, 2017, 3:31:17 AM5/9/17
to Python Programming for Autodesk Maya
Thank you all specially Michael Boon. I have been stuck with this for 1.5 months and could not figure out. You have done me a big favor. thanks a lot again.
Cheers.

On Friday, May 5, 2017 at 2:09:37 AM UTC+5, Michael Boon wrote:
The little apostrophe character you're using should be `, not '
On a US keyboard, that's the key above Tab. I don't know what it's called (and I've never seen it used for anything other than MEL).


On Thursday, 4 May 2017 18:04:24 UTC+10, Junaid Iqbal wrote:
Hey guys,
I need some help with the script. I have no idea about scripting. I am watching a tutorial for making grass in Maya 2016. I am at the point where I am trying to write the script where the grass faces the normals so the grass goes with the uneven surface of the land. Below is the code that is there in the script. Kindly let me know what is wrong as I keep getting the error "//Error: 4.15: Syntax error"
the code I am writing is " vector $nrm = 'nearestPointOnMesh -1p ($p.x) ($p.y) ($p.z) -normal -q pPlane'; "

I am using nparticles and have added few expressions, everything else is working fine but when I add the above line the error appears. Is there another way to do this? please you can suggest and tutorial as well if anything available.
Regards
Junaid.

Michael Boon

unread,
May 10, 2017, 6:39:57 PM5/10/17
to Python Programming for Autodesk Maya
We both learned something on this thread :)
Reply all
Reply to author
Forward
0 new messages