Hi,
I'm testing a setup where I would want to procedurally assign collision relationships on a per object-to-object basis.
Say I have 2 Cloth Objects (cloth_0 and cloth_1), and I also have 2 Static Objects (box_0 and box_1).
I would want the ff partnering: box_0 to only affect cloth_0 box_1 to only affect cloth_1
Currently, it works if I'm assigning it manually using the Collide Relationship DOP.
(The setup below was modified to allow multiple objects to be created per primitive group).
Later on, I may want to increase the number of partner objects.. Is there a way to go about this procedurally?
I tried using the $OBJID on the Affected/Affector Objects parameter like this:
I also have primitive groups named piece_* for each object:
cloth_0 and box_0 are on primitive group piece_0.
cloth_1 and box_1 are on primitive group piece_1.
But don't know where or how to use the data to assign custom relationships.
I'm also looking into creating an indexing attribute that I could use to assign the partner relationships but haven't had any luck making it work.
I've attached a hipnc file below.
Any help to point me in any direction would be very much appreciated
BTW, Happy New Year guys!
cloth.custom_affector.h13.v01.01.hipnc