sjrohit Posted August 22, 2019 Share Posted August 22, 2019 (edited) Hello, Is there any way to paint the restlength parameter on vellum cloth constraint? I tried assigning "restlength" attribute using wrangler node, but vellum solver doesnt seem to read it. I am trying in SOP btw. Thanks! Edited August 22, 2019 by sjrohit Quote Link to comment Share on other sites More sharing options...
anim Posted August 22, 2019 Share Posted August 22, 2019 Primwrangle, Constraint geo in first input, Vellum geo with attrib you want to scale by in second string attrib = chs("attrib"); int pts[] = primpoints(0, @primnum); float v0 = point(1, attrib, pts[0]); float v1 = point(1, attrib, pts[1]); f@restlength *= avg(v0, v1); ts_vellum_paint_restlengthscale.hip 2 Quote Link to comment Share on other sites More sharing options...
sjrohit Posted August 22, 2019 Author Share Posted August 22, 2019 (edited) This is cool, thank you so much Tomas! Learnt something new today -Rohit Edited August 22, 2019 by sjrohit Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.