solving for XYZ rotation order in TOUCH

Hey Everyone,

This is an expression that works well in Houdini for solving for rotation orders

(explodematrix(mlookatup(vtorigin(“…/root”,“…/root”),vtorigin(“…/root”,“…/goal”),vtorigin(“…/root”,“…/twist”)), “SRT” , “XYZ” , “RX”))

I talked to, I believe, Malcolm about 6 months ago. He said he added mlookatup expression, which is awesome, but I looking to solve for a rotation order.

Does anybody know a way I can do this in Touch?

-Mark

There currently isn’t an explodematrix expression, I’ll look into adding it.

Only thing I can think of right now is: If you can get your 16 values from the matrix into a CHOP (1 value per channel). You can then assign the CHOP as the transform matrix in an Object on the Pre-Transform page (CHOP Matrix is the parameter name). Then you can use the Object CHOP to get the RX, RY RZ of that Object.

Roundabout way but right now thats the only way I think.

Hey Malcolm,

Do you know if it’s possible to get a 16 channel matrix from a blend sop?

Nah I don’t think there is a way.

Our matrix support is just starting up right now, it may be possible to do it with the expression CHOP but I’m not sure.

The Transform CHOP has an option to output 16 channels (the 4x4 matrix values).

First of all thanks for getting back to me so quickly.
Second of all … Damn!

I’ll see if there’s any “creative” way of figuring this out. I’ll look at the transform Chop as you suggested. Thanks for your guidance.