Copy link to clipboard
Copied
Hello,
I am trying to recreate the functionality of Edit -> Project Configuration -> Updating the file via the python API.
I found
substance_painter.project.reload_mesh
However, when I pass in a path to my file, and a
substance_painter.project.MeshReloadingSettings(False, True)
object and a loading mesh callback, it seems that the texture sets don't line up. If I do it manually they do.
My loading mesh callback just does a print right now of the value, in this case 0 since it is successful.
Is there something I am missing in the API call?
Thank you for any insight.
Copy link to clipboard
Copied
Hi,
Could you share your log and a screenshot of your wrong result? This would allow us to investigate your issue correctly.
Thank You,
Kind Regards,
Geoffroy SC
Copy link to clipboard
Copied
No log output, but the texture set list grayed everything out except for the default material. I went back to a simpler scene with just a cube and 3 texture sets and was able to get it to work, so I think it might have been a significant difference in the mesh I was testing.
Thank you for taking a look!