Community
Arnold for 3ds Max
Rendering with Arnold in 3ds Max using the MaxtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MtoA - Import arnold shader (ass/mtlx) from file

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
itayassouline
848 Views, 2 Replies

MtoA - Import arnold shader (ass/mtlx) from file

Hi!

I would like to build a script that takes a file from the computer (i dont care if its ass or mtlx)

and imports it to the hyper shade like this menu tool: 1610833127988.png.

i know about

cmds.arnoldExportToMaterialX(filename="/path/to/myfile.mtlx", mtl=True)

to export,


but i cannot find an import command.


Thanks!


Tags (2)
Labels (2)
2 REPLIES 2
Message 2 of 3

arnoldImportAss


def arnoldImportShaders():
    global defaultOperatorsFolder
    if defaultOperatorsFolder == "":
        defaultOperatorsFolder = cmds.workspace(q=True,rd=True, fn=True)

    objFilter = "ASS File (*.ass);; AXF File (*.axf);; MaterialX File (*.mtlx);; USD File (*.usd *.usda *.usdc)"
    ret = cmds.fileDialog2(cap='Import Arnold Shaders',okc='Select',fm=1,ff=objFilter,dir=defaultOperatorsFolder) or []
    if len(ret):
        defaultOperatorsFolder = ret[0]
        cmds.arnoldImportAss(f=ret[0], mask=ai.AI_NODE_SHADER)




// Stephen Blair
// Arnold Renderer Support
Message 3 of 3

Thank you so much!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report