Jump to content

Point Position Expression


Xsiv

Recommended Posts

I am now tearing through a cloth curtain. It really blows apart. I want most of the cloth to move, but only to tear at the point of impact.

My thoughts are:

Write an expression on the Tear Threshold based on each point's position from the point of impact.

ImpactPos - $PT = dist. Divide this by the size of the object to normalize and put that in the Stretch/Shear/Bend of the Tear Threshold.

I am not sure how to write this. If I put a dummy object at the point of impact, use its transform?

Suggestions?

Thank you

Chris

SlicedCurtainExpression.hipnc

Link to comment
Share on other sites

what about just using Paint Tearable shelf tool?

you can paint weak spots on cloth

it will create point attributes (stretchtearthreshold, sheartearthreshold, bendtearthreshold) on source geometry which will be used as multipliers to Stretch/Shear/Bend Tear Threshold parameters

if you really need to do that procedurally, I suppose you can change/create that attributes in SOP Solver, and since you can use SOP nodes inside SOP solver, you can use many ways to make just impact area tearable, attribtransfer or VOPs, or just Point SOP with something like your mentioned expression

Edited by anim
Link to comment
Share on other sites

  • 1 year later...
  • 4 weeks later...

you are right, it disappeared, puff

houdini obviously does more magic than we might like

you can create new tool in the shelf and put this into script tab


import dopclothtoolutils

dopclothtoolutils.selectAndPaintTearableClothObjects(kwargs)[/CODE]

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