Setting Vellum restlength scale by attribute

   2738   3   0
User Avatar
Member
336 posts
Joined: 12月 2014
Online
I'm trying to use a vellum constraint property with VEX to read a per point restlength scale/ I must be missing something simple here, it's not working for me. Any ideas?

Attachments:
vellum_custom_restlength.hip (844.2 KB)

User Avatar
Member
555 posts
Joined: 2月 2017
Offline
but would you associate length with a point tho ? how does a point have a length ?

or try plugging the pink port to your null and check out the spreadsheet, points don't have rest length…but prims…..mmmhhhh
User Avatar
Member
8592 posts
Joined: 7月 2007
Online
AndyW
I must be missing something simple here, it's not working for me. Any ideas?
you need to take the values from the grometry that you painted on, (or directly from sops if you want it to update)
...
float factor = point(1, "factor", pt);
...

also you may want to average atributes from both ends
https://forums.odforce.net/topic/43269-painting-restlength-on-vellum-cloth-constraint/?tab=comments#comment-205001 [forums.odforce.net]
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
336 posts
Joined: 12月 2014
Online
Thanks! Great tip and example hip. Seems to work now, but I'm not seeing much difference when I average the ends. I could be doing something wrong again…

Attachments:
vellum_custom_restlength_1.hip (693.6 KB)

  • Quick Links