coccosoids
Trying to use Labs Fast Remesh in a solver and it always crashes. Has anyone tried it?
Hi, can you upload a simple hip file?
coccosoids
Trying to use Labs Fast Remesh in a solver and it always crashes. Has anyone tried it?
node = kwargs['node'] ## this node id = kwargs['script_multiparm_index'] ## id of the current multiparm instance names = node.geometry().attribValue('names') ## get the array of unique names name = names[id] ## get the name of the curr parm node.parm('Name'+str(id)).set(name) ## assign name to the label ## build the menu menu = ['0', 'letters', '1', 'numbers', '2', 'mix'] return menu
Andr
the first issue I see is that you ask for a detail attribute that doesn't exist.
`name` is a point attribute indeed. So you should use the `points()` function instead, and use as point number the instance number of the multiparm.
kwargs["script_multiparm_index"]
szmatefy
Is there any procedural way to do UV relaxing?
Thanks and Merry Christmas!
int nearpts [] = nearpoints(0, @P, ch('dist'), 2); removeindex(nearpts, 0); // remove self float lenX, lenZ; vector nearpos; int nearpt = nearpts[0]; if ( @ptnum < nearpt ) nearpos = point(0, 'P', nearpt); lenX = length(@P.x - nearpos.x); lenZ = length(@P.z - nearpos.z); if (lenX < ch('delX') && lenZ < ch('delZ')) i@group_deleEndPnts = 1;
foreach(int pnt;int p; i[]@npts)
i[]@npts
Andr
Note: these functions can be very cpu intensive.
int neighs[] = neighbours(0, @ptnum); f[]@nearpos; foreach(int pt; neighs) { vector pos = point(0, "P", pt); append(f[]@nearpos, pos.z); }
float bounds[] = primintrinsic(0, "bounds", @primnum);
ResilientPictureCompany
Finally managed to finish help doc