Skip to main content
Participant
May 10, 2022 12:10 AM UTC
Question

Reload a mesh in existing project

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.

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

GeoffroySC
Community Manager
Community Manager
May 12, 2022 8:57 AM UTC

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

Translate
hanticAuthor
Participant
May 12, 2022 11:55 PM UTC

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!

Translate