Jump to content

Cloth: Per Object Collision?


galagast

Recommended Posts

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).

post-3610-0-02792800-1420124898_thumb.jp

 

post-3610-0-51198100-1420124905_thumb.jp

 

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:

post-3610-0-95785200-1420124909_thumb.jp

 

 

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

Link to comment
Share on other sites

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 by galagast
Link to comment
Share on other sites

  • 3 weeks later...

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...