Matrix to Transform values {[SOLVED]}

   304   3   0
User Avatar
Member
1224 posts
Joined: 4月 2017
Offline
Hi!

If I've made a matrix in vex, how can I get the Translate Rotate and Scale values to use in a Geo Node?

-Olivier
Edited by olivierth - 2026年6月7日 13:01:16

Attachments:
Houdini_Matrix_to_Transform_01.jpg (30.3 KB)

User Avatar
Member
65 posts
Joined: 3月 2025
Offline
As far as I understand, VEX is modifications in SOP, i.e., within the object. But you want transformations of the object itself. I think using VEX is ideologically wrong. It's like trying to pull yourself out of a swamp by the ear.
If you want to take transformations from a specific point for an object, then a rivet node at the object level is probably best.
User Avatar
Member
2182 posts
Joined: 9月 2015
Offline
cracktransform() function.

https://www.sidefx.com/docs/houdini/vex/functions/cracktransform.html [www.sidefx.com]
User Avatar
Member
1224 posts
Joined: 4月 2017
Offline
Fantastic, the cracktransform does exactly what I need! thanks, Babaj!

For anybody looking into this, here's my example. I had a matrix (4@m) on a point and needed the rotation value (v@r). I did this in a point wrangle:

vector t, s;
cracktransform(0, 0, 0, 4@m, t, v@r, s);

...and to apply it to do the rotation on my Light, I used this in each rotation channels:

point("../GeoNodeWithPoint/OUT/", 0, "r", 0) // path to the point, Point number, Attribute to get, component (xyz)

-Olivier
Edited by olivierth - 2026年6月7日 13:00:11

Attachments:
Houdini_Matrix_to_Transform_02.jpg (51.2 KB)

  • Quick Links