Create skinprim attribute for curves?

   6517   5   1
User Avatar
Member
455 posts
Joined: April 2018
Offline
Howdy all, I've got some FiberMesh curves brought in from ZBrush and Houdini needs skinprim and skinprimuv attributes to recognize them as hairs for clumping, etc. I see that skimprim is just the primitive that a hair or guide is connected to. skinprimuv I have no idea. Is there a way to create these attributes? I can resample the curves to get curveu, giving me the root, but I'm not if that's on the right track and what to do next. Any tips are welcome, thanks!
Subscribe to my Patreon for the best CG tips, tricks and tutorials! https://patreon.com/bhgc [patreon.com]

Twitter: https://twitter.com/brianhanke [twitter.com]
Behance: https://www.behance.net/brianhanke/projects [www.behance.net]
User Avatar
Member
9378 posts
Joined: July 2007
Offline
use Guide Skin Attribute Lookup SOP and plug your guide curves and skin to it
it will create lookup attribs if missing
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
455 posts
Joined: April 2018
Offline
tamte
use Guide Skin Attribute Lookup SOP and plug your guide curves and skin to it
it will create lookup attribs if missing

Nice, thanks! That sets the attributes up and all looks good in the geo spreadsheet. However, the hairgen isn't picking up all the guides for some reason. I tried a bunch of things, but no luck. Project is attached if anyone wouldn't mind taking a look. Thanks again!
Edited by BrianHanke - March 4, 2021 18:16:52

Attachments:
curves.zip (219.0 KB)

Subscribe to my Patreon for the best CG tips, tricks and tutorials! https://patreon.com/bhgc [patreon.com]

Twitter: https://twitter.com/brianhanke [twitter.com]
Behance: https://www.behance.net/brianhanke/projects [www.behance.net]
User Avatar
Member
455 posts
Joined: April 2018
Offline
Still playing around with this and it's just not working no matter what I do. My original sample had some guides cutting through the geo, so I can see how the attributes are being created incorrectly there. But even with a flat plane and some curves heading straight up Houdini still can't figure it out. Everything looks okay in the geo spreadsheet, everything that needs to be there is there, but it's not assigning the skinprim and skinprimuv attributes correctly...
Subscribe to my Patreon for the best CG tips, tricks and tutorials! https://patreon.com/bhgc [patreon.com]

Twitter: https://twitter.com/brianhanke [twitter.com]
Behance: https://www.behance.net/brianhanke/projects [www.behance.net]
User Avatar
Member
9378 posts
Joined: July 2007
Offline
your curves are reversed, the roots are on the ends further from the skin
so append Reverse SOP right after your curves File SOP
you may also need to increase Influence Radius on Hair Generate since your guides are pretty sparse
Edited by tamte - March 5, 2021 12:04:27
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
455 posts
Joined: April 2018
Offline
tamte
your curves are reversed, the roots are on the ends further from the skin
so append Reverse SOP right after your curves File SOP
you may also need to increase Influence Radius on Hair Generate since your guides are pretty sparse

Ha, amazing, so simple. Thanks very much!
Subscribe to my Patreon for the best CG tips, tricks and tutorials! https://patreon.com/bhgc [patreon.com]

Twitter: https://twitter.com/brianhanke [twitter.com]
Behance: https://www.behance.net/brianhanke/projects [www.behance.net]
  • Quick Links