Hi,
I want to pull some cloth at a specific frame after it covers a collision object, but can't find how.
Thanks for ideas. I've made a group of points to pin and piped these group into a pointwrangle:
if(@Frame > 40 && @Frame < 80) {
@P.y += (@Frame-40)/20;
}
but the group pinned from the start (what is logic ;o),
Detlef
Vellum cloth pin points
4136 2 2-
- winkel
- Member
- 217 posts
- Joined: March 2006
- Offline
-
- BabaJ
- Member
- 2110 posts
- Joined: Sept. 2015
- Offline
If I understand what your trying to do correctly…..
On your Vellum Cloth Constraints node - set your “Pint to Animation” > “Pin Type” to “Stopped” rather than Permanent.
Then double click the solver to expose what you will see is a null node named ‘force_output’.
Place a pop wrangle here and connect it to the null node with your code like this:
In the above code the if statement if(@ptnum == 0) of course needs to be changed to the point/s or group of point/s you have set up for pinning e.g.
On your Vellum Cloth Constraints node - set your “Pint to Animation” > “Pin Type” to “Stopped” rather than Permanent.
Then double click the solver to expose what you will see is a null node named ‘force_output’.
Place a pop wrangle here and connect it to the null node with your code like this:
if(@ptnum == 0)
{
if((@Frame > 40) && (@Frame < 80))
{
i@stopped = 0;
@P.y= (@Frame-40)/20;
}
else
{
i@stopped = 1;
}
}
In the above code the if statement if(@ptnum == 0) of course needs to be changed to the point/s or group of point/s you have set up for pinning e.g.
if(@group_My_Pts_Pinned == 1) { blah blah blah;}
-
- winkel
- Member
- 217 posts
- Joined: March 2006
- Offline
-
- Quick Links