[Sidefx-houdini-list] File name wildcards

Gary Jaeger gary at corestudio.com
Fri Jun 8 13:41:22 EDT 2018


Thanks Peter-

Maybe I’m not being clear. Well, obviously I’m not. 

Specifically I’m trying to build a rudimentary and easy-ish way of loading Megascan assets. Each asset directory contains a .json file whose file name is the important part of the string. In the path below, “qkduW” is the relevant part. 

/ASSETS/MSCANS/Downloaded/3d/Tree_qkduW/qkduW.json

And there are various LOD’s and texture maps, i.e.

/ASSETS/MSCANS/Downloaded/3d/Tree_qkduW/Aset_qkduW_LOD0.obj
/ASSETS/MSCANS/Downloaded/3d/Tree_qkduW/Aset_qkduW_4K_Displacement.exr
/ASSETS/MSCANS/Downloaded/3d/Tree_qkduW/Aset_qkduW_4K_Normal_LOD0.jpg

Etc

So my (boneheaded?) idea was to add a string to a Geometry node, and just paste “qkduW” into and and have the file node inside figure out everything else. Same with the RS Material Builder node. The thing is, the characters before and after the key string aren’t aways the same and I don’t want to have to track them down and fix them. So…. I thought I could use wildcards. Somehow. 

Make sense? Our smart guy (would normally whip out some python solution) is busy atm so I’m left hacking through it myself :)

Gary Jaeger / 650.728.7957 direct / 415.518.1419 mobile
249 Princeton Avenue / Half Moon Bay / CA 94019 <https://www.google.com/maps/place/249+Princeton+Ave,+Half+Moon+Bay,+CA+94019,+USA/data=!4m2!3m1!1s0x808f73cae8ec3c2b:0x8f4550d52ed8e890?sa=X&ved=0ahUKEwjP68e-m6_MAhUX4WMKHRoSDm4Q8gEIHDAA>
http://corestudio.com <http://corestudio.com/>

> On Jun 8, 2018, at 10:28 AM, Peter Bowmar <pbowmar at GMAIL.COM> wrote:
> 
> Hi Gary,
> 
> I don't think that will work in a File SOP since a File SOP loads a single
> file.
> 
> You can use the Shelf tool to load a bunch of files or the File-Import as
> well to load a bunch of files, in which case the file browser will let you
> filter (in the lower right corner) and * filtering will work as you expect.
> 
> Cheers,
> 
> Peter B
> 
> On 8 June 2018 at 10:22, Gary Jaeger <gary at corestudio.com> wrote:
> 
>> I'm looking for the wildcard syntax to use in file name strings. So if I
>> have fu_bar_a034_blah.obj on disc, and I want to use something like
>> *a034*.obj how do I do that in a file node? I’ve tried every combination I
>> can think of, and haven’t been able to find it in the docs. Thanks.
>> 
>> Gary Jaeger / 650.728.7957 direct / 415.518.1419 mobile
>> 249 Princeton Avenue / Half Moon Bay / CA 94019 <
>> https://www.google.com/maps/place/249+Princeton+Ave,+Half+
>> Moon+Bay,+CA+94019,+USA/data=!4m2!3m1!1s0x808f73cae8ec3c2b:
>> 0x8f4550d52ed8e890?sa=X&ved=0ahUKEwjP68e-m6_MAhUX4WMKHRoSDm4Q8gEIHDAA>
>> http://corestudio.com <http://corestudio.com/>
>> _______________________________________________
>> Sidefx-houdini-list mailing list
>> Sidefx-houdini-list at sidefx.com
>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>> 
> 
> 
> 
> -- 
> Cheers,
> 
> Peter B
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list



More information about the Sidefx-houdini-list mailing list