r/Houdini•
flowency

Fetch material outputs from other networks?

Heyja,

Tl;dr: Can you fetch materials from different networks into another matnet? Like the object merge sop or fetch rop?

Long version: We are rendering in VRay and setting up VRay proxies with multiple materials is a bit of a pain. For those that don't know you have to cache out your object with materials already attached. For example lets take a tree that has /mat/Bark and /mat/Leaf attached. We export that out as a vrmesh (proxy) and reimport that with vrays proxy import sop. Now to reapply both materials VRay wants us to use it's specific vrayProxyMaterial. The way it works is that you give it the proxy import sop and from the file it recognizes the previously attached shaders. The material node will then populate inputs per material where you pipe the surface output of the old materials into.

Now in our example this is no problem since both materials sit in the same context but it gets pain when the materials sit in different contexts. In my dream world I'd build an hda around this with the proxy export and import already in + an editable matnet with a proxy material which I'll have populate the inputs and then through a python script build those fetch mats that just fetch the old material and plug that into the proxy material.

Of course I could copy and paste the old materials but this then looses the link and I can't easily go back and edit the bark for multiple proxy trees at the same time.

Posted Feb 6, 2022, 1:04 PM UTC

13
teerre•

Not completely sure I understand, I've never used VRay for Houdini, but you can make an hda of the original material and share it everywhere you want.

1
flowencyOP•

In very simplified terms i've got /mat/matA and wand to plug its' surface output into /obj/matnet/matB.

Hdas is a cool idea but would be too much of a hassle in our pipe.

1
smb3d•

Doesn't help your situation, but redshift has a very elegant situation to this exact situation. Proxy overides per material. You can also use stylesheets.

1