magneto Posted April 10, 2012 Share Posted April 10, 2012 (edited) I don't know if expressions are the proper way to do this, but basically I have an operator path at the asset level where I want to transform my points in this object by the transform of another object. Something like this (inside subnet): Point SOP: TX = ... { matrix m = optransform("/obj/box1"); vector v = vector3($TX, $TY, $TZ); return (m * v)[0]; } When I do this, it seems to return everything as 0. Is this the right way? Should I use python for this, or VEX? If VEX, how would one acquire the transform of another node inside VEX/VOPs? Edited April 10, 2012 by magneto Quote Link to comment Share on other sites More sharing options...
graham Posted April 10, 2012 Share Posted April 10, 2012 (edited) You could do something like this: http://houdinitoolbox.com/houdini.php?asset=36 It merely constructs a transform matrix from certain/all components of an object transform and deforms geometry by it using Python. Edited April 10, 2012 by graham 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted April 10, 2012 Author Share Posted April 10, 2012 Thanks Graham, that's exactly what I was looking for. Out of curiosity, do you know if it's possible to do the same in hscript and VEX? Also do you think this can be done as an inline Python? I will give it a try, because in my case, I don't have to extract the matrix beforehand, just use it as a whole so should be shorter to type inside the field. 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.