Convert .mtlx to .usda

Greetings!

Is there a way to convert a .mtlx file into a native USD MaterialX .usda file? I’m trying to write a Python script for Maya and thought this would be possible in using pxr.UsdMtlx but looking at the module’s attributes (in Maya 2025.3) it does not seem to have much there.

From a terminal:

> usdcat -o usdMaterial.usda mtlxMaterial.mtlx

Should do it. Plenty of other ways from within a python shell, but this is the easiest.

Oh, since you did mention python script…

stage = Usd.Stage.Open("mtlxMaterial.mtlx")
stage.GetRootLayer().Export("usdMaterial.usda")

You can’t simply call stage.Save() because the root layer is the translated mtlx file itself.

1 Like