Skip to main content
Participant
March 12, 2025
Question

close() closes the substance painter instance

  • March 12, 2025
  • 1 reply
  • 130 views

Im doing a script to process a list of .spp files, and at end of my script Im using substance_painter.project.close() to close the current file and repeat the process with the next file in the list but this command closes the Substance Painter instance and not the current file.

 

There is another way to process a bunch of files?

 

A strech of my script is:

for i in range (100😞
substance_painter.project.open(substance_painter_projects[i])
#do something
substance_painter.project.close()
#jump to the next file

 

1 reply

Participant
March 12, 2025

The draft of my script is:* 
for i in range(x)*