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

python API - cannot close after save because project is locked

New Here ,
Sep 14, 2023 Sep 14, 2023

Copy link to clipboard

Copied

Hello,

 

I have a problem when trying to close a project in a script, related to the fact that the project seems to be locked (there is indeed a .painter_lock file):

 

[Python] File "C:\Users/Fabien/OneDrive/Documents/Adobe/Adobe Substance 3D Painter/python\plugins\sbs_automation.py", line 468, in __call__
substance_painter.project.close()

 

[Python] File "C:\Program Files/Adobe/Adobe Substance 3D Painter/resources/python/modules\substance_painter\project.py", line 382, in close
_substance_painter.project.do_action(_substance_painter.project.Action.Lock)

 

[Python] _substance_painter.exception.ProjectError: Cannot do 'Lock' action from current 'Project locked' state

 

I cannot find a workaround to this problem, because even if a watch the exception, it seems that there is no event or operation related to locked status of the project.

Has anybody a solution to this problem ?

 

Thank you for your help

 

TOPICS
Bugs & Crashes , Scripting

Views

57

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

Have something to add?

Join the conversation
Resources