Beginner: Set painted attribute to 0 based on group.

   354   2   1
User Avatar
Member
4 posts
Joined: April 2020
Offline
Hi all,

I'm new to Houdini(outside lighting) and starting a grooming project for a stuffed animal.
Luckily there is a lot of tutorial material online!

But I'm running into a creative issue when trying to replicate the 'seams' of the toy.
Rather than painting them by hand, I'd love to use my 'group' which contains the seams.
And subtract the group selection from whatever has been painted.

I imagine this must be possible in an attribute wrangle or perhaps a node option I do not know.


As I'm new, I'd also take any recommendation on foundamental tutorials.

Cheers,
Max
Edited by MaxBerends - Feb. 11, 2024 09:55:59

Attachments:
Screenshot 2024-02-11 144156.png (4.1 MB)
Screenshot 2024-02-11 144131.png (4.2 MB)

User Avatar
Member
4 posts
Joined: April 2020
Offline
Hi all,

For now I've found the following solution.

Paint the 'soft mask' for furLift,
Paint the seams as it's own attribute.

Wrangle a new attribute that multiplies the seam attribute with the soft painted mask.

If anyone still knows how to convert a 'group' to an attribute that'd still be much appreciated.

Attachments:
Screenshot 2024-02-11 163446.png (2.3 MB)
Screenshot 2024-02-11 163504.png (2.3 MB)
Screenshot 2024-02-11 163524.png (129.4 KB)
Screenshot 2024-02-11 163410.png (2.5 MB)

User Avatar
Member
93 posts
Joined: Dec. 2019
Offline
Hello Max,

MaxBerends
If anyone still knows how to convert a 'group' to an attribute that'd still be much appreciated.

You could use an Attribute Adjust Float [www.sidefx.com] node or an Attribute Create [www.sidefx.com] node here, by limiting the node's operation to the seams group only.

This could be done on the 'soft mask' or 'painted attribute' directly rather than creating a second attribute.

MaxBerends
Wrangle a new attribute that multiplies the seam attribute with the soft painted mask.

If you need to have a second attribute, you could also use an Attribute Combine [www.sidefx.com] node rather than writing code in a Wrangle, as it has many usefull features for combining attributes, such as blending and clamping.

Here's a hip file with simple examples.
Edited by ObeidaZakzak - Feb. 11, 2024 13:09:28

Attachments:
set_attrib_to_zero.hiplc (408.2 KB)

Houdini Pipeline Supervisor @ TAT Studio
  • Quick Links