COPs paint bucket or flood fill node?

   2077   3   0
User Avatar
Member
80 posts
Joined: 2月 2018
Offline
Hi hopefully I'm missing something obvious here but I can't find anything like a paint bucket tool in COPS, I was hoping to fill a section of a texture from the outer borders that would propagate over empty pixels. Something like a flood fill algorithm: https://en.wikipedia.org/wiki/Flood_fill [en.wikipedia.org]
3D Freelancer
https://www.artstation.com/ffd [www.artstation.com]
User Avatar
Member
670 posts
Joined: 9月 2013
Online
Hi FFD,

you could either try to write a custom python node in COPs or simply use the new group expand-node.

Attachments:
Bildschirmfoto 2019-11-28 um 09.28.04.png (56.2 KB)
flood_fill.hipnc (129.2 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
80 posts
Joined: 2月 2018
Offline
Thanks, that works great. It just seems like something that there should be a COP node for. Unfortunately I'm not much of a coder anyway. Just out of curiosity why did you say python and not VEX?
3D Freelancer
https://www.artstation.com/ffd [www.artstation.com]
User Avatar
Member
670 posts
Joined: 9月 2013
Online
There are some ready-to-use python libraries containing flood filling functions.
Also a compositing program usually rather supports keying instead of flood filling.
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
  • Quick Links