Page 1 of 1

From Maya to Clarisse via MaterialX

Unread postPosted: Mon Jun 27, 2022 7:44 am
by runabird36
Hi,

I did lookdev on Maya and export this with materialX. and then import the exported file(.mtlx) in clarisse.

At this moment, the error popup like image.

In this case,
Let me know the solution of this case?

How could i import the maya lookdev in clarisse with materialX?

Maya : 2020 ([arnold]-[Utilities]-[Export Selection to MaterialX])
Clarisse : 5.5

Error Message
[img]![1656310114](https://user-images.githubusercontent.c ... cbf23f.png)[/img]

Re: From Maya to Clarisse via MaterialX

Unread postPosted: Mon Jun 27, 2022 1:29 pm
by dcourtois
Hi,

This validation error means it's not a valid MaterialX material. This error is generated by the MaterialX library itself.
My guess is that the .mtlx file generated by Maya contains outputs of a type A connected to inputs of type B.
Usually this happens if you try to connect a `color3` output to a `vector3` input (or vice versa)

To fix this, you'll need to find the offending connections (the errors lists the names of the nodes) and make sure that both ends of that connection have the same type (MaterialX provides conversion nodes to convert from a type to another)

For reference, MaterialX spec is strongly typed. Most DCCs allow automatic conversion, but the exported .mtlx file should *never* contain connections between 2 ports of a different type.

Re: From Maya to Clarisse via MaterialX

Unread postPosted: Tue Jun 28, 2022 7:21 am
by runabird36
Thank you for your reply

Now, I get to know the reason that I failed to read mtlx which is exported from maya to clarisse.

If then, To do automatic conversion,

have you ever heard of any 'automatic conversion' of maya ?
or Do i have to find the offending connection case and develop the tool by python module of materialX ?