hbahnassi
Nov. 25, 2021 11:26:18
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
Nov. 26, 2021 06:06:49
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
June 28, 2022 07:07:59
why the thumbs down? perfect answer
Konstantin Magnus
June 29, 2022 04:24:45
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;