Search - User list
Full Version: RBD attribute for number of constraints connected?
Root » Technical Discussion » RBD attribute for number of constraints connected?
MrDontMiss
Hello,

I am looking for a way to find/record the number of constraints connected to each packed piece for RBD. Primarily interested in altering forces for pieces when they've broken free of all constraints.

Thanks in advance for any advice!
npetit
in a point wrangle with the rbds in the first input and the constraints in the second, this will give you the number of constraints connected to each piece.

int pts[] = findattribval(1, "point", "name", s@name);
int numconstraints = len(pts);
if (numconstraints < 1)
{
    // do your magic
}
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