How to add a user defined MaterialX compound in Solaris?

   308   3   1
User Avatar
Member
57 posts
Joined: July 2013
Online
Hi,
I created a MaterialX compound node as blabla.mtlx file. Now I want to use it in Houdini. In Maya I can simply use the MATERIALX_SEARCH_PATH env variable and I can use my node. In houdini the node is not visible at all. How can I use my own nodes in Houdini Solaris?
User Avatar
Member
31 posts
Joined: July 2018
Online
I found this in Sidefx's doc. There's a tool to convert the materialx file into a hda.
https://www.sidefx.com/docs/houdini/solaris/kug/materials.html#custom [www.sidefx.com]

That .mtlx source file is then post-processed by two other tools:

$HHP/mtlx2karma.py - outputs the karmaNodeGraph.json file necessary for Karma to render these shaders correctly; this should be added to HOUDINI_PATH or user preferences directory

$HHP/mtlx2hda.py - produces the user-facing output HDA, should be added to any otls folder on HOUDINI_PATH or user preferences directory
MotionCOPs toolkit - pushing COPS into motion design and dynamic effects territory.
https://github.com/Boning1011/motion-cops [github.com]
User Avatar
Member
22 posts
Joined: Dec. 2017
Online
A reference node with edit material should do the trick
User Avatar
Member
57 posts
Joined: July 2013
Online
Ah, I think the sidefx docs will help a lot. Thanks a lot.
A reference node can help but I'd prefer to have a similiar workflow as in maya where I can simply add a mtlx compound node and add to the mtx seachpath. Then I can use it alongside with the standard mtl nodes in the shader setup.
  • Quick Links