galagast Posted January 1, 2015 Share Posted January 1, 2015 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_0box_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 Quote Link to comment Share on other sites More sharing options...
galagast Posted January 2, 2015 Author Share Posted January 2, 2015 (edited) For now, opdigits seems to help with going the non-procedural way of creating multiple copies of the Collide Relationship DOP.. (Minor question.. Is there a FOR EACH SOP equivalent in DOPs?) Edited January 2, 2015 by galagast Quote Link to comment Share on other sites More sharing options...
ranxerox Posted January 20, 2015 Share Posted January 20, 2015 For now, opdigits seems to help with going the non-procedural way of creating multiple copies of the Collide Relationship DOP.. (Minor question.. Is there a FOR EACH SOP equivalent in DOPs?) the apply relationship dop is similar to a foreach node in sops: https://www.sidefx.com/docs/houdini13.0/nodes/dop/applyrel -G Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.