int setpointgroup(int geohandle, string name, int point_num, int value, string mode="set")
int setprimgroup(int geohandle, string name, int prim_num, int value, string mode="set")
int setvertexgroup(int geohandle, string name, int prim_num, int vertex_num, int value, string mode="set")
https://www.sidefx.com/docs/houdini/vex/functions/setpointgroup.html