How to export materialx file from houdini?

   Views 2720   Replies 4   Subscribers 0
User Avatar
Member
5 posts
Joined: 3月 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
スタッフ
1460 posts
Joined: 7月 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
5 posts
Joined: 3月 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
スタッフ
1460 posts
Joined: 7月 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: 11月 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