Image aside, from what I'm reading, you're trying to get basically a 2D
vector on a given plane that matches the rotation (within its plane) of
another vector?
Or, put another way, you'd like to use this code to project an arbitrary
vector onto a given plane?
Something like this? If so, I can probably come up with something.
On 11/2/2014 4:55 AM, [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
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
--
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/54572F50.9090409%40gmail.com.
For more options, visit https://groups.google.com/d/optout.