VEX cracktransform() equivalent in python

   853   2   0
User Avatar
Member
306 posts
Joined: July 2005
Offline
Hi,

Writing a standalone utility to process fspy json output. Have a nice example from VEX land which pulls the rotations from the supplied transform like this:

v@rot = cracktransform(0, 0, 1, {0,0,0}, transpose);

Is there a python library I can grab that'll allow me a similiar function?

nuke.math.Matrix4()has a rotationsZXY() method which is exactly what I'm after. That'd be an answer for me if it didn't require a nuke license which I can't see a way of calling it without one.

Cheers,
r.
“First things first – but not necessarily in that order”
– The Doctor
User Avatar
Member
306 posts
Joined: July 2005
Offline
Yeah - brilliant. Exactly what I was hoping for.

Cheers!
“First things first – but not necessarily in that order”
– The Doctor
  • Quick Links