Skip to main content
Participant
May 10, 2022
Question

Reload a mesh in existing project

  • May 10, 2022
  • 1 reply
  • 1386 views

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 has been closed for replies.

1 reply

GeoffroySC
Community Manager
Community Manager
May 12, 2022

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

hanticAuthor
Participant
May 12, 2022

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!