Quaternion Vex/Python equivalents
2179
2
1
julien-b
Member
66 posts
Joined: March 2017
Offline
May 18, 2020 6:13 p.m.
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 - May 18, 2020 18:13:50
VFX Supervisor @ MPC London
julien-b
Member
66 posts
Joined: March 2017
Offline
May 18, 2020 6:19 p.m.
Ok, I think I found the answer : dihedral seems to be the vex equivalent of Quaternion.setToVectors() ! Cheers, Julien
VFX Supervisor @ MPC London