Hey. i think for controling click on an object in maya you should write plugin. but in maya env, you can use a helper(like locator) to put it on your point and then get its position with xform command. and you can use geometryConstraint for sticking to poly, pointOnSurface node or other ways.
On Mon, Sep 22, 2014 at 4:31 AM, <[email protected]> wrote: > Hey guys, > > im trying to write some python code to be able to click a random point on > a poly surface and then have it create a locator at that coordinate x,y,z. > > is this possible ? - at the moment i have to create a locator and then > make the surface live and drag the locator into the chosen position. > > any advice would be great, > > thanks, > Sam > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/d701a530-da99-4ac1-9169-4e6d990c8807%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > -- Bests, madoodia -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CADvbQwLSx3LvTWFkg%3DoeK91GkQKh4xYw3Lm8sM5ukDkh4jYabA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
