Just occurred to me that you might simply want to make vector A point in the same direction as vector B.
OK so sticking with Pymel. A and B are Pymel Vectors: A = B.normal() * A.length() On Monday, 3 November 2014 11:42:23 UTC+11, Michael Boon wrote: > > I'm not really clear on what you're trying to do, but Pymel's Vector class > has a method that might help: Vector.rotateBy(axis, angle) > > Alternatively, you can definitely use a matrix. Maybe look at > TransformationMatrix.setToRotationAxis > > Or maybe you already figured it out :) > > > On Tuesday, 21 October 2014 06:52:08 UTC+11, e955...@gmail.com wrote: >> >> Hello all, >> >> i have a vector that i am using to fire rays around a particular axis. >> But i need to be able to adjust the rotation of this vector axis with >> another vector. >> >> Does anyone know the smartest way to orient a vector, based on the >> orientation of another vector? >> >> im guessing with a rotation matrix. But do i need to convert the >> orientation vector to degrees first. >> >> any advice would be cool, >> 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 python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/b93e33d8-a4d7-4012-89dc-b096fac3d1df%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.