Last updated on
Sep 15, 2025
Note
Documentation for Substance Automation Toolkit is now included in the SAT package. You can access the documentation by opening html-doc.zip inside your downloaded SAT package.
Edit sbsar with SBSARManager
With PySBS 2021.0 it’s possible to edit a substance archive file (.sbsar).
Use SBSARManager with the with statement:
sbsar = sbsarchive.SBSArchive(context.Context(), "archive.sbsar")
sbsar.parseDoc()
with sbsar.enterSBSARManager() as edit:
edit.addIcon("aGraphIdentifier", "thumbnail.png", replaceIfExists=True)
edit.save()