I must not be understanding something here. Why when I use this expression in the Z rotation channel of a transform SOP, does it return -45, when I am expecting it to return 90?
explodematrix(mlookat("“,”“), ”RST“, ”XYZ“, ”RZ")
I just want to rotate an object from one unit vector to another. Thanks for any tips!
rotation between two vectors
4503 3 2-
- grhart
- Member
- 21 posts
- Joined: Nov. 2010
- Offline
-
- tamte
- Member
- 9372 posts
- Joined: July 2007
- Offline
if you want rotation matrix from one vector to another use dihedral()
so it'll be
explodematrix(dihedral("“,”“), ”RST“, ”XYZ“, ”RZ")
(as mlookat() and mlookatup() are for creating rotation matrix in direction from one vector to another with optional up vector, so in case you use them your first vector would ideally be for origin)
so it'll be
explodematrix(dihedral("“,”“), ”RST“, ”XYZ“, ”RZ")
(as mlookat() and mlookatup() are for creating rotation matrix in direction from one vector to another with optional up vector, so in case you use them your first vector would ideally be for origin)
Tomas Slancik
CG Supervisor
Framestore, NY
CG Supervisor
Framestore, NY
-
- grhart
- Member
- 21 posts
- Joined: Nov. 2010
- Offline
-
- pelos
- Member
- 624 posts
- Joined: Aug. 2008
- Offline
-
- Quick Links


