s...@weacceptyou.com
unread,Sep 12, 2016, 7:02:45 PM9/12/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Python Programming for Autodesk Maya
Hello,
i am using the 'rotate.By' method from the MVector class. all i want to know is how can i make the angle that is used in the calculation become negative. so the vector that is returned after it is rotated by the given axis is in the opposite direction eg
rot_1 = rot1.rotateBy(rotate_by_axis, math.radians(angle[3]))
rot_1 = rot1.rotateBy(rotate_by_axis, math.radians(-angle[3]))
the second one has a minus before the angle. I assumed this would rotate the other way but just generates the same vector. Does anyone know how to rotate in the opposite direction?
thanks,
Sam