quarel Posted May 29, 2010 Share Posted May 29, 2010 Hi all! I need some help! I imported the dxf model into Houdini but it is very far from central grid. Simply it's lost somewhere in space . I can focus of course on imported model or on grid plane . but how to center the model into grid without manualy trough move handle? Quote Link to comment Share on other sites More sharing options...
mightcouldb1 Posted May 29, 2010 Share Posted May 29, 2010 Go inside the object node for your geo and append a transform SOP. After you have done that, you can use the origin() expression to query the objects position in world space and transform your geometry to the center by negating that number. So tx, ty and tz would be: -origin("","..", "TX") -origin("","..", "TY") -origin("","..", "TZ") You can center the pivot point of the geometry using $CEX, $CEY, $CEZ in a the same transform SOP. Quote Link to comment Share on other sites More sharing options...
sam.h Posted June 1, 2010 Share Posted June 1, 2010 Go inside the object node for your geo and append a transform SOP. After you have done that, you can use the origin() expression to query the objects position in world space and transform your geometry to the center by negating that number. So tx, ty and tz would be: -origin("","..", "TX") -origin("","..", "TY") -origin("","..", "TZ") You can center the pivot point of the geometry using $CEX, $CEY, $CEZ in a the same transform SOP. or just use -$CEX, -$CEY, -$CEZ in the transform SOP Quote Link to comment Share on other sites More sharing options...
mightcouldb1 Posted June 1, 2010 Share Posted June 1, 2010 or just use -$CEX, -$CEY, -$CEZ in the transform SOP Ahhhhh!!!!!!! Quote Link to comment Share on other sites More sharing options...
quarel Posted June 1, 2010 Author Share Posted June 1, 2010 ou, this is much easier. But thanx both! I haven't time to reply thnax;) but anyway..why it is only trough hscript, why isn't there some quick menu command? 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.