Skip to main content
Participating Frequently
March 31, 2023
Answered

Substance Painter Python API - access existing layers and groups?

  • March 31, 2023
  • 1 reply
  • 3461 views

I'm writing an automation tool that will process hundreds of .spp files and output textures from them based on our custom preset. For the most part everything is working.

The tricky part is that some of the assets have texture/color variations that are stored in grouped layers such as "0001" , "0002", "0003" etc.  Only one of those groups is visible at a time, the rest are hidden. 

I see no info about layers in the documentaion, is it possible to get access to document's layers, layer types, and their names? Is it possible to toggle their visibility?   Ideally I want the tool to be able to toggle folders on and off and export each variation

 



Correct answer Cyril Dellenbach

Is there any updates


Hello,

 

With the 10.0 release, this is now possible to edit the Layer Stack !

 

1 reply

Cyril Dellenbach
Community Manager
Community Manager
April 4, 2023

Hi @Dzmitry2918485967ds,

 

Currently, this isn't possible to make changes to the layer stack, but this is definitely on the table, so stay tuned!

 

Best regards,

 

Cyril Dellenbach (Micro) | QA Support Artist | Adobe
Participating Frequently
April 5, 2023

@Cyril Dellenbach thanks for the update. certainly looking forward to a more extensive python api 🙂