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

Substance 3D painter crashes when Python plugin runs

New Here ,
Feb 27, 2025 Feb 27, 2025

Copy link to clipboard

Copied

So this is a silly and trivial question but limited documentation left me with no choice. I've created a very basic script that creates a project in substance painter with a given mesh file and then saves it to another location. Like this:

project.create(mesh_file_path=src_file_full_address)
project.execute_when_not_busy(lambda: project.save_as(temp_full_address, project.ProjectSaveMode.Full))


Here, the job "finishes" with no errors. but nothing happens in the project. The file is empty! I tried to check the mesh with: `project.last_imported_mesh_path()`, and substance crashes. The thing is that when I run the exact same 3 lines inside the python console in substance's UI, they work just fine and the mesh file is opened inside the app. So I know it's not because of the syntax or anything. I guess I have to run something before or after running these commands but I have no idea what. Does anyone know anything about this?

TOPICS
Bugs & Crashes , Discussion

Views

78
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
no replies

Have something to add?

Join the conversation