Wires from hairgen

   3887   4   1
User Avatar
Member
1755 posts
Joined: March 2014
Offline
Hi,
I need to create (polygonal) wires from a hairgen sop and set the ‘wire radius’ param (in the polywire sop) based on each hair guide's length - basically the longer a hair is, the thicker the generated poly-wire. So for each hair-strand id, I have to get its length and polywire it within a for-each loop? How do I do this?
Thanks.
User Avatar
Member
79 posts
Joined: Feb. 2008
Offline
Use a measure sop to perimeter to store the lengths, plug it into an attribute promote to promote it from primitives to points and then use the attribute in the wire radius and multiply it by whatever factor you wish (example: @perimeter*0.1).
Edited by MathieuLeclaire - April 3, 2020 11:21:22
User Avatar
Member
1755 posts
Joined: March 2014
Offline
yep, it works. thanks a bunch!
User Avatar
Member
1755 posts
Joined: March 2014
Offline
seems like my initial intuition was close - one still has to put this through a loop based on strands id, if the are wires are to be controlled both via hair length as well as a custom profile
or maybe not… if there are other methods, I'm eager to find out
Image Not Found
Edited by anon_user_89151269 - April 4, 2020 13:46:36

Attachments:
quill_spines.jpg (483.5 KB)
quill_spines.hipnc (299.4 KB)

User Avatar
Staff
122 posts
Joined: Jan. 2012
Offline
Here is a simpler setup without the foreach loop and using the new Sweep SOP, which for this case will be much faster than polywire and includes a ramp for the profile.

Cheers,
Scott

Attachments:
ScalBylength.hip (354.0 KB)

Senior Product Designer
Side Effects Software
  • Quick Links