Setting Vellum restlength scale by attribute

   4361   3   0
User Avatar
Member
343 posts
Joined: Dec. 2014
Offline
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: Feb. 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
9380 posts
Joined: July 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
CG Supervisor
Framestore, NY
User Avatar
Member
343 posts
Joined: Dec. 2014
Offline
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