Randomly remove points from group over time

   2402   2   0
User Avatar
Member
95 posts
Joined: 11月 2017
Offline
Hello everyone,

I've recently done some hairgrooming, and now I want to simulate the hair shedding from the head.
My idea was to take vellum for that task.

Therefore I took a group expression to get the first point of every hair and pin the vellum hair to those points.
Now I'm looking for an expression/node to randomly delete the points of this group over time.
This should result in the hair shedding over time respectively being affected by the forces i feed in the vellum solver, right?

Any hints in the right direction will be much appreciated!

Attachments:
Vellum_Hair_Grooming.jpg (346.5 KB)

User Avatar
Member
338 posts
Joined: 12月 2014
Offline
For that group do in a wrangle:

if(rand(@ptnum)<ch('threshold')){
removepoint(0, @ptnum);
}

keyframe the threshold slider over time
User Avatar
Member
95 posts
Joined: 11月 2017
Offline
Thanks thats working fine for the Group itself, but as soon as i feed it in to the vellum hair i get on Frame 2 and onwards:
“Error: Reference and target geometry have different point counts for piece '27.. ”
  • Quick Links