Jump to content

How can I animate the amount of the "shape match" constraint property?


Masoud

Recommended Posts

Before the mesh becomes cloth, drop down a point wrangle. Add a float value to the interface. Place your keyframes there.

f@my_attrib_name = chf("animate_me");

After the wrangle, drop down a NULL named OUT_ATTRIBS.

Dive into the solver to configure the vellumconstraintproperties. On the inputs tab change one of the non-used inputs to fetch from sop, OUT_ATTRIBS.

Then it's just a vex transfer of the animated value to the attribute you want to drive.

float my_animated_value = point(1,"my_attrib_name",@ptnum);
stiffness = my_animated_value;

Don't forget to turn on the check box for the Stiffness value so the code can overwrite it.

Edited by Atom
  • Like 1
Link to comment
Share on other sites

Thank you Atom, but should I add "@type=pressure" in the group tab !?

And, I don't know why the results are not the same, when I modify the stiffness parameter in the ShapeMatch node, and when I overwrite it by the  VEXpression using vellumconstraintpropertiese !! :wacko:

Edited by Masoud
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...