• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Reload a mesh in existing project

New Here ,
May 09, 2022 May 09, 2022

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.

TOPICS
Scripting

Views

959

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 12, 2022 May 12, 2022

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 12, 2022 May 12, 2022

Copy link to clipboard

Copied

LATEST

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!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources