[Sidefx-houdini-list] File name wildcards

Nikita Musatov not.a.whale at gmail.com
Fri Jun 8 14:26:14 EDT 2018


You can create an asset with a menu that based on obj in the folder. Based
on the menu in cycle load all obj files in the scene (foreach). You can
find example in File Merge Asset.
I hope it helps!

пт, 8 июн. 2018 г. в 21:08, Olex P <hoknamahn at gmail.com>:

> Something like that in Python SOP should do the trick
>
> import glob
>
> sop = hou.pwd()
> geo = node.geometry()
> cache = hou.Geometry()
>
> for name in glob.glob('/path/*name*.geo'):
>     cache.loadFromFile(name)
>     geo.merge(cache)
>
>
> On Fri, Jun 8, 2018 at 6:58 PM Martin Winkler <
> martin.winkler at grey-matter.de>
> wrote:
>
> > For some more sophisticated globbing a bit of python never hurts.
> > Just construct your filename string upstream, stick it into a detail
> > attribute and reference it in the file-parameter via `details(0,
> > "yourdetailattributename")`
> >
> > For quick and dirty this should do it.
> >
> >
> > On Fri, Jun 8, 2018 at 7:52 PM, Gary Jaeger <gary at corestudio.com> wrote:
> > > Right, thanks. That’s essentially what I’m doing now. But as you found,
> > it’s that “Tree_” and “LOD0” and whatever else that changes with each
> > asset. Sigh
> > >
> > > Btw, I’d pay you for that Megascans loader… :)
> > >
> > > Gary Jaeger / 650.728.7957 <(650)%20728-7957> direct / 415.518.1419
> <(415)%20518-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:47 AM, Peter Bowmar <pbowmar at gmail.com> wrote:
> > >>
> > >> You could channel reference to the loader at the top level, so
> something
> > >> like:
> > >>
> > >> /ASSETS/MSCANS/Downloaded/3d/Tree_`chs("../charset")`/Aset_
> > >> `chs("../charset")`/_LOD0.obj
> > >>
> > >> etc
> > >
> > > _______________________________________________
> > > Sidefx-houdini-list mailing list
> > > Sidefx-houdini-list at sidefx.com
> > > https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
> >
> >
> >
> > --
> > Martin Winkler, Geschäftsführer
> > Alarmstart GmbH
> > Georg-Friedrich-Str.1
> > 76530 Baden-Baden
> > Tel. 07221 972 95 31
> > HRB 700934 Amtsgericht Mannheim
> > EORI Nr. DE534938152768284
> > Ust-ID Nr.DE249482509
> > _______________________________________________
> > Sidefx-houdini-list mailing list
> > Sidefx-houdini-list at sidefx.com
> > https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
> >
> _______________________________________________
> 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