Hey Sam, Would it be helpful to visualise your requirements by physically creating nodes, such as locators, to represent your points and vectors, and to utilise the standard Maya constraints, such as aim and pointConstraint as opposed to coding directly?
This way you could more easily illustrate to us what it is you're looking to do, maybe via a plain GIF image. I may also add that, unless you're expecting your computations to run across a large number of items, sticking with nodes may even be the faster way, development-time wise. Best, Marcus On 2 November 2014 12:55, <[email protected]> wrote: > hi guys, > > i know how to use the angleBetween command to find the angle between two > vectors, and then use the rotateBy method to rotate one vector to align > with the other. My problem is though, imagine that the first vector has its > freedom of movement limited by an axis, so all it can do is rotate along a > particular plane. > > Is there a way of finding that angle to rotate the first vector to so that > it is pointing in the direction of the second vector, but restricted by its > axis. > > hope this makes sense > 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/888778fe-c9d8-41a4-b344-5c2d24345b42%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > -- *Marcus Ottosson* [email protected] -- 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/CAFRtmOCWTBpPFtH8%3DVhJrxu0QDVdSSkXVpaYSspr_zEUMxA50Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
