Grab only specific textures from a folder

   1460   0   0
User Avatar
Member
7 posts
Joined: 9月 2015
オフライン
Hi all,

I'm quite new to scripting in Houdini, I've been given a scene containing a python node importing textures from a directory and randomly assigning them to flags in the scene.

All the files follow the same naming convention german_flag_01.tif, brazil_flag_01.tif and so on. I need to be able to select textures more specifically from the folder and ignore some completely, I can't just remove textures from the folder since we have multiple scenes requiring different selections. How can I do this? Either in the python node (I don't really know python) or perhaps in vex which I know a little of? Or if there another way I'd be very interested in hearing it.

Any help is much appreciated, thanks in advance,

Tom
  • Quick Links