How to export materialx file from houdini?

   2076   4   0
User Avatar
Member
3 posts
Joined: March 2019
Offline
I want to export my materailx material as a .mtlx file. I can't seem to find that functionality anywhere. Is it currently possible?
User Avatar
Staff
1449 posts
Joined: July 2005
Offline
In H19.0.440 journal "The MaterialX VOPs have a RMB > Save > MaterialX... menu entry to save the shader network to .mtlx files."
User Avatar
Member
3 posts
Joined: March 2019
Offline
Amazing! Thank you

Is there a way I can automate this process to happen every frame with a python script or something similar? I am trying to export a bunch of assets in USD referencing a .mtlx file. However, the material changes every frame.
User Avatar
Staff
1449 posts
Joined: July 2005
Offline
That menu entry uses a python script in vop2mtlx.py module. So you should be able to call that script directly every frame. Take a look at `saveShaderNetwork()` function in that module.
User Avatar
Member
1 posts
Joined: Nov. 2021
Offline
rafal
In H19.0.440 journal "The MaterialX VOPs have a RMB > Save > MaterialX... menu entry to save the shader network to .mtlx files."
When I click save, browse and write `<materialName>.mtls` then nothing is happen.
  • Quick Links