This question is ported from Discord.
Hello,
When i want to publish any model in maya 2023 from ayon , the material i gave dose not export and its preview turn to green . After that when I deselect and select again its preview become normal again. Can you help me?
Answered by @BigRoy on Discord
A model
export does not include the materials - it’s an export of just geometry.
However, a recent PR may change that feature: add option for including shaders on model export. #69
The material turning green I believe is a viewport refresh bug because we ‘briefly’ disconnect the shaders in the scene to ensure certain exports are clean in a way we need. (Unless you’re getting actual errors?)
You may try to run mel command ogs -reset
to see if that ‘clears’ the green preview… if so, then it’s definitely a maya viewport refresh bug. If it doesn’t - then we should identify what breaks.