Quaternion Vex/Python equivalents
2217
2
1
julien-b
Member
66 posts
Joined: 3月 2017
オフライン
2020年5月18日 18:13
Hi guys,
I'm struggling to find the equivalent functions in python and vex when it comes to quaternions.
This seems to be working in Python :
o1 = hou . Quaternion ()
o1 . setToVectors ( hou . Vector3 ( 0 , 1 , 0 ), self . normal )
o2 = hou . Quaternion ()
q = o2 . slerp ( o1 , ratio )
How would I get the same result in Vex?
Or if even my Python code is wrong, how can I get the same result in Vex/Python for what I'm trying to achieve ?
Thanks a lot,
Julien
Edited by julien-b - 2020年5月18日 18:13:50
VFX Supervisor @ MPC London
julien-b
Member
66 posts
Joined: 3月 2017
オフライン
2020年5月18日 18:19
Ok, I think I found the answer : dihedral seems to be the vex equivalent of Quaternion.setToVectors() ! Cheers, Julien
VFX Supervisor @ MPC London