Would someone know how to do this?
A simple example would suffice or any documentation would help.
Which one should I use? - the Arnold Python API (any docs?) or the mtoa.core, mtoa.aov, etc (any docs?)
Thanks!
Solved! Go to Solution.
Solved by ashley.handscomb.retallack. Go to Solution.
The easiest method would be to use the MtoA arnoldExportToMaterialX Mel command, you can use it in Python like:
import maya.cmds as cmds cmds.arnoldExportToMaterialX(filename="/path/to/myfile.mtlx", mtl=True)
This command sets that only selected materials should be exported, rather than whole looks.
For each selection it will find the Shading group and export each shader, displacement, volume for each group.
Yes. It works! Thanks 🙂 Apart from the 'mtl' Flag what are the other flags required? For example, as you've pointed out - exporting looks.
Can't find what you're looking for? Ask the community or share your knowledge.