Gustaf Nilsson

gustaf

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

overriding object and group materials Dec. 2, 2016, 8:20 a.m.

Hi

I have a fbx file exported from sketchup which i am trying to light and render in houdini (nc).

All the materials will have to be overridden without going into the imported subnetwork as it will be updated/replaced often.

after import some materials comes in applied to groups of primitives and some are applied at geometry level depending on how they were assigned in sketchup.


What i tried to do was create a new attribute called material_path and use an expression to rewrite the paths to the materials, something like: `strreplace(@shop_materialpath, “/imported_fbx”, “”)`. this changes the paths to the materials from /obj/imported_fbx/materials/* to /obj/materials/*.

Unfortunately it only seems to work on materials that applied by group, but when materialpaths are applied at object level they dont pick up the override.

sorry probably a confusing explaination.

also tried using the material style sheet, but i couldnt figure out how to make it work either.


What is the easiest way of overriding everything without digging into the subnet?