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, [email protected] 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/c1821ae6-4973-4091-9e9f-97260de1c206%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
