Jump to content

lost model in viewport


quarel

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 :P

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...