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

Substance Painter Python API - access existing layers and groups?

Explorer ,
Mar 31, 2023 Mar 31, 2023

Copy link to clipboard

Copied

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

Views

1.6K

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

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 !

 

Votes

Translate

Translate
Adobe Employee ,
Apr 04, 2023 Apr 04, 2023

Copy link to clipboard

Copied

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

Votes

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
Explorer ,
Apr 05, 2023 Apr 05, 2023

Copy link to clipboard

Copied

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

Votes

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

Copy link to clipboard

Copied

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

Votes

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

Copy link to clipboard

Copied

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

Votes

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
New Here ,
Sep 03, 2023 Sep 03, 2023

Copy link to clipboard

Copied

Any updates on this? Hopefully next patch!

Votes

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

Copy link to clipboard

Copied

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

Votes

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

Copy link to clipboard

Copied

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

Votes

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
Explorer ,
May 16, 2024 May 16, 2024

Copy link to clipboard

Copied

Is there any updates

Votes

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

Copy link to clipboard

Copied

Hello,

 

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

 

Cyril Dellenbach (Micro) | QA Support Artist | Adobe

Votes

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

Copy link to clipboard

Copied

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

Votes

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

Copy link to clipboard

Copied

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

Votes

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
New Here ,
Jul 11, 2024 Jul 11, 2024

Copy link to clipboard

Copied

LATEST

Hi Cyril,

Is there any documentation about it ?

 

 

Votes

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

Copy link to clipboard

Copied

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

Votes

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
Resources