Search - User list
Full Version: Move Object Center to Selected Point(s)
Root » SI Users » Move Object Center to Selected Point(s)
hbahnassi
Hi,

Is there similar functionality in Houdini (Transforming object center to selected point(s)), if not I appreciate some tips on how to create it with SOP/VEX if possible

Thanks,
Homam
CYTE
Hey hbahnassi,

you can make a group containing the points you want the center to be. Then use the match size node and toggle the "use groups to determine justification bounds". Select your group there and set Justify X,Y,Z values to your liking.

Cheers
CYTE
scarything
why the thumbs down? perfect answer
Konstantin Magnus
In a VEX point wrangle it may be:

// INPUT 0: Mesh to be translated
// INPUT 1: Points with group 'sel'

vector pos_center = getbbox_center(0);
vector pos_pts = getpointbbox_center(1, 'sel');

v@P += pos_pts - pos_center;
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB