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

Exception ProjectError: Failed to save copy

Guest
Dec 24, 2021 Dec 24, 2021

Copy link to clipboard

Copied

I am seeing these error:

[Project] Das Speichern der Kopie unter "C:/Program Files/Adobe/Adobe Substance 3D Painter/resources/samples/MeetMat_autosave_0.spp" ist fehlgeschlagen.


[Plugin – autosave] Exception ProjectError: Failed to save copy file:///C:/Program Files/Adobe/Adobe Substance 3D Painter/resources/samples/MeetMat_autosave_0.spp (qrc:/js/project.js line 36)

 

 

TOPICS
Bugs & Crashes

Views

90

Likes

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 ,
Apr 12, 2022 Apr 12, 2022

Copy link to clipboard

Copied

I just tried out this example from the following documentaion path

image.png
C:\Program Files\Adobe\Adobe Substance 3D Painter\resources\python-doc\substance_painter\project.html?highlight=template

I changed where the paths of the where all the assets exist.

import substance_painter.project

# A few declarations used in this example:
workFolder = "C:/temp"
meshFile = workFolder+"/test.fbx"
templateFile = workFolder+"/test.spt"
mySettings = substance_painter.project.Settings(
    import_cameras=True,
    normal_map_format=substance_painter.project.NormalMapFormat.OpenGL)

substance_painter.project.create(mesh_file_path=meshFile, settings=mySettings)
# Save the project to a file:
substance_painter.project.save_as(workFolder+"/test.spp") # No errors
import substance_painter.project;substance_painter.project.save_as(r"C:\temp\test.spp")

Likes

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 ,
Apr 12, 2022 Apr 12, 2022

Copy link to clipboard

Copied

half of my message didn't come through. 😞

two of my other images didn't come through. 😞

and I am unable to edit the post either. 😞

Likes

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 ,
Apr 12, 2022 Apr 12, 2022

Copy link to clipboard

Copied

Painter is busy error with the following commands 

~.save_as(workFolder+"/MyNewProject.spp")
~.save_as_copy(workFolder+"/MyBackupProject.spp")
~.save_as_template(templateFile, "01_Head")
 not sure what I am doing wrong

Likes

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 ,
Apr 12, 2022 Apr 12, 2022

Copy link to clipboard

Copied

LATEST

probably need to update your docs so that others don't waste a pile of time. 😞

 

from substance_painter import event
from substance_painter import project

root_folder = "C:/temp"
def test():
    # A few declarations used in this example:
    
    mesh_file = f"{root_folder}/test.fbx"
    prj_settings = project.Settings(
        import_cameras=True,
        normal_map_format=project.NormalMapFormat.DirectX)
    project.create(mesh_file_path=mesh_file, settings=prj_settings)
    project.execute_when_not_busy(save_project)

def save_project():
    project.save_as(f"{root_folder}/test.spp",
        project.ProjectSaveMode.Full)

 

Likes

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