asxp3 Posted August 20, 2017 Share Posted August 20, 2017 The question is same as the title shows, I tried serval ways in vex, but all fail, so I'm so curious that how to make that happen in vex? Anyone knows? Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted August 20, 2017 Share Posted August 20, 2017 You can use maketransform(): http://www.sidefx.com/docs/houdini/vex/functions/maketransform Put this in a pointwrangle and make sure to set all scale values to 1. int trs = chi('transformation_order'); int xyz = chi('rotation_order'); vector t = chv('translation'); vector r = chv('rotation'); vector s = chv('scale'); vector p = chv('pivot'); matrix m = maketransform(trs, xyz, t, r, s, p); @P *= m; 5 Quote Link to comment Share on other sites More sharing options...
cvoelkner Posted June 12, 2019 Share Posted June 12, 2019 On 20.8.2017 at 6:20 PM, konstantin magnus said: You can use maketransform(): http://www.sidefx.com/docs/houdini/vex/functions/maketransform Put this in a pointwrangle and make sure to set all scale values to 1. int trs = chi('transformation_order'); int xyz = chi('rotation_order'); vector t = chv('translation'); vector r = chv('rotation'); vector s = chv('scale'); vector p = chv('pivot'); matrix m = maketransform(trs, xyz, t, r, s, p); @P *= m; Thanks konstantin Magnus! This is something I was searching for:-) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.