Vellum Cloth Animate Pins

   2076   2   0
User Avatar
Member
68 posts
Joined: Nov. 2021
Offline
Hi,

what I want to achieve is actually really easy: A grid is pinned by all 4 corner points until Frame 30, where 2 corner points are released so the cloth falls down and is only hanging on the two remaining pins.

I know you can't animate the group since it's only read on the first frame so I guess I have to do it with constraints somehow but I couldn't figure out how :/
User Avatar
Member
2658 posts
Joined: June 2008
Offline
Start off with your pin group set to Stopped, not Permanent.
Dive into the solver and add a geometrywrangle connected to FORCE.
You'll have to view which point numbers you have pinned, but here is the code you place in the geometrywrangle to "un-stop" them. Once they are "unstopped" they are no longer pinned.

In my example, the corners are @ptnum 1 and 62.
if(@Frame > 29){
    if (@ptnum == 1){i@stopped = 0;}
    if (@ptnum == 62){i@stopped = 0;}
}
Edited by Enivob - July 18, 2023 11:21:44

Attachments:
ap_vellum_animated_pin_release.hiplc (490.8 KB)
vellum_pin_release.gif (2.3 MB)

Using Houdini Indie 20.5
Windows 11 64GB Ryzen 16 core.
nVidia 3060RTX 12BG RAM.
User Avatar
Member
68 posts
Joined: Nov. 2021
Offline
Enivob
Start off with your pin group set to Stopped, not Permanent.
Dive into the solver and add a geometrywrangle connected to FORCE.
You'll have to view which point numbers you have pinned, but here is the code you place in the geometrywrangle to "un-stop" them. Once they are "unstopped" they are no longer pinned.

In my example, the corners are @ptnum 1 and 62.
if(@Frame > 29){
    if (@ptnum == 1){i@stopped = 0;}
    if (@ptnum == 62){i@stopped = 0;}
}

Thank you so much! Exactly what I needed!
  • Quick Links