Community
Arnold General Rendering Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

arnold materialx bug?

3 REPLIES 3
Reply
Message 1 of 4
xtvjxk123456
215 Views, 3 Replies

arnold materialx bug?

when i export matx use api

# coding:utf-8
import arnold
# arnold 6的api
arnold.AiBegin()
pp = r'C:\Users\Administrator\Desktop\look_c.ass'
u = arnold.AiUniverse
# 输出相应节点的数据
mesh = arnold.AiNodeLookUpByName(u, "/pHelix1/pHelixShape1")
shader = arnold.AiNodeGetPtr(mesh, "shader")
displace = arnold.AiNodeGetPtr(mesh, "disp_map")
arnold.AiMaterialxWriteMaterial(r"D:\test_matx.mtlx", "ccc", surface=shader, displacement=displace)
arnold.AiEnd()

i found test_matx.mtlx has some error.

6486-snipaste-2020-03-27-16-25-09.jpg

diffuse_roughness is float in ass

6487-snipaste-2020-03-27-16-25-42.jpg

and diffuse_roughness is color3 in mtlx file


there is the ass file.

look_c.ass

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

Yes, it comes out as color3 instead of float

But it still works when I apply the look with a MaterialX operator.



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

make me difficult to learn matx coding.so,it is not a bug?

Message 4 of 4

I don't know yet, I have to talk to the developer. Things are a little slower at the moment.



// Stephen Blair
// Arnold Renderer Support

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

Post to forums  

Autodesk Design & Make Report