Archived post by TOADSTORM

“`python import fnmatch import hou
def glob_attrs(geo, pattern): all_attrs = list() out_attrs = list() all_attrs.extend(geo.pointAttribs()) all_attrs.extend(geo.primAttribs()) all_attrs.extend(geo.vertexAttribs()) all_attrs.extend(geo.globalAttribs()) matches = [f for f in pattern.split() if not f.startswith(“^”)] excludes = [f.strip(“^”) for f in pattern.split() if f.startswith(“^”)] for attr in all_attrs: for pattern in matches: if fnmatch.fnmatch(attr.name(), pattern): out_attrs.append(attr) for pattern in excludes: if fnmatch.fnmatch(attr.name(), pattern): if attr in out_attrs: out_attrs.remove(attr) out_attrs = list(set(out_attrs)) return out_attrs “`

feed it a Geometry object and a pattern and it’ll return hou.Attribs

no guarantees it isn’t shit but it might help you

Archived post by Glad-Partikel

Some tasty examples

I’ve been getting into Grid2d for Niagara and it’s a bit tricky to get it going to the point where you can start building your own advection, solvers etc. So I recorded a video so I remember all the steps needed to get something shown on screen. Might help someone else. https://www.youtube.com/watch?v=XVKpofOj44c

Archived post by ajk48n

I mentioned last week that I had made an hda that utilizes TOPs and makes it easy(ish) to save file caches / render an opengl contact sheet of all the caches. I’ve gotten permission to share the HDA, so if anyone wants it, here ya go. The main hda is a geo node called wedge cache. Inside it uses a TOPs hda that is a simple wrapper of ffmpeg to make saving out mp4s easier.
If you just want to use this for caches, you won’t need to install anything else, but if you want to render the contact sheets you’ll need imagemagick and ffmpeg installed
The hda is a little complex, so I’ve put together a demo video on how to use it. I recommend watching at 2x password: wedgy https://vimeo.com/490719853

Attachments in this post:
http://fx-td.com/houdiniandchill/wp-content/uploads/discord/20204612/16/20/ffmpeg_encode_mp4.1.0.hda
http://fx-td.com/houdiniandchill/wp-content/uploads/discord/20204612/16/20/wedge_cache__1.0.hda

Archived post by Solitude

@rich lord

this is the expanded version

🙂

it’s not wrapped up into an hda at all though

so the parameters for blend distances and stuff are a bit scattered

it’s definitely not perfect if you push it too far or have lots of uv seams, but I think it does alright in a lot of cases. I used something like this for a ‘dirt skirt’ setup

Attachments in this post:
http://fx-td.com/houdiniandchill/wp-content/uploads/discord/20200512/06/20/boolsmooth2.gif
http://fx-td.com/houdiniandchill/wp-content/uploads/discord/20200512/06/20/boolblend2.jpg
http://fx-td.com/houdiniandchill/wp-content/uploads/discord/20200512/06/20/bool_blend_v2.hiplc