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
// 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;