RBD attribute for number of constraints connected?

   201   1   1
User Avatar
Member
1 posts
Joined: April 2023
Offline
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!
User Avatar
Staff
360 posts
Joined: Feb. 2008
Offline
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
}
  • Quick Links