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

Substance Painter Python API - access existing layers and groups?

Explorer ,
Mar 31, 2023 Mar 31, 2023

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

Dzmitry2918485967ds_0-1680296432811.png

 



TOPICS
Scripting
3.6K
Translate
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

correct answers 1 Correct answer

Adobe Employee , May 21, 2024 May 21, 2024

Hello,

 

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

 

Translate
Adobe Employee ,
Apr 04, 2023 Apr 04, 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
Translate
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
Explorer ,
Apr 05, 2023 Apr 05, 2023

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

Translate
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
Community Beginner ,
Jun 05, 2023 Jun 05, 2023

This is exactly what I'm looking for too, is there a timeline for shipping this? Thanks!

Translate
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
Adobe Employee ,
Aug 14, 2023 Aug 14, 2023

Hi @Keycap,

 

Unfortunately, I can't share any timeline, but I can tell you this shouldn't take too long.

 

Best regards,

 

Cyril Dellenbach (Micro) | QA Support Artist | Adobe
Translate
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 ,
Sep 03, 2023 Sep 03, 2023

Any updates on this? Hopefully next patch!

Translate
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 ,
Jan 09, 2024 Jan 09, 2024

Any updates? The lack of python layer access is really holding back export automation in Painter.

Translate
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
Adobe Employee ,
Jan 10, 2024 Jan 10, 2024

I agree it is. However I still have no news on this regards. I know we're working on it, and I know this is fairly high in our priority list, but can't share anything more.

 

Regards,

Cyril Dellenbach (Micro) | QA Support Artist | Adobe
Translate
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
Participant ,
May 16, 2024 May 16, 2024

Is there any updates

Translate
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
Adobe Employee ,
May 21, 2024 May 21, 2024

Hello,

 

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

 

Cyril Dellenbach (Micro) | QA Support Artist | Adobe
Translate
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 ,
May 29, 2024 May 29, 2024

Hello Cyril,

I work with python to export 2d View and since the version 9.0.1~ I am facing a dark shadow on the exported maps/images. My code is just like the "versioning plugin" code, but I have implemented loops and controls to get and enumarate single layers (basecolor layers).

Could you help me to eliminate these shadows from the exported files then I could update my substance? I am stuck in the version 9.0 because of this issue.

Thank you

Translate
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 ,
May 29, 2024 May 29, 2024

Sorry, its my first time here. Here are what is happening:
map_2DView_visualization.jpgBASE_01.png

Translate
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 ,
Jul 11, 2024 Jul 11, 2024
LATEST

Hi Cyril,

Is there any documentation about it ?

 

 

Translate
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 ,
Aug 11, 2023 Aug 11, 2023

API (JS/python) only supprots few functionalities. Because officially sp is not hopped be extended by developer?

Translate
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