Is there any way to move objects to the world's origin?

   7834   4   1
User Avatar
Member
6 posts
Joined: July 2020
Offline
Most other tools we've worked with have the ability to center objects based on coordinates. But Houdini seems to import objects into their own coordinate space, thus making it impossible to import multiple large objects into the same "local area". I don't see a way to move an object to the world's origin (and ignore it's own coordinate space). As a result, we have to hunt for objects all over the world space to find them. Many import 10s of meters away from center and in different positions. Any advice would be welcome.
Edited by VisionaryMind - July 2, 2022 14:19:39
User Avatar
Member
1850 posts
Joined: May 2006
Offline
The shape match sop can do that for you.
http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
447 posts
Joined: April 2018
Offline
mestela
The shape match sop can do that for you.
Match Size?
User Avatar
Member
1850 posts
Joined: May 2006
Offline
That.

(I only ever type 'match' into the tab menu and find the thing I need)
Edited by mestela - July 3, 2022 07:15:13
http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
2 posts
Joined: Nov. 2018
Offline
You could also use a point wrangle:

matrix xform = ident();
vector center = getbbox_center(0);

center *= -1;
translate(xform,center);

v@P *= xform;
  • Quick Links