Skip to main content
New Participant
January 20, 2025
Answered

adjust (fill layer) color via script

  • January 20, 2025
  • 1 reply
  • 497 views

Is it possible to change the color value of a fill layer via python script? I'd like to use an array that stores color values, and export a texture set for each of the colors stored in the array.

Correct answer Danny35546892lpyf

Thank you for your reply.

While I was already checking that folder and I cou;dn't find that part of the documentation, it turned out I was running an older version of Substance Painter.

After updating to V10 I found what I was looking for and managed to get it up and running pretty quickly.

Thank you for pointing me in the right direction by mentioning it was added in 10.0

1 reply

Cyril Dellenbach
Community Manager
Community Manager
January 29, 2025

Hello @Danny35546892lpyf,

 

Thank you for the question and sorry for the delay in response.

 

I'm not a Python expert, but I know this is clearly possible since we've added the Layer Stack module with 10.0 version.

 

In our Python's documentation (Help > Scripting Documentation > Python API) you'll find multiple helpful examples covering Fill Layers

 

 

You should start here: substance_painter package > Layerstack module

 

Best regards,

 

Cyril Dellenbach (Micro) | QA Support Artist | Adobe
Danny35546892lpyfAuthorCorrect answer
New Participant
January 29, 2025

Thank you for your reply.

While I was already checking that folder and I cou;dn't find that part of the documentation, it turned out I was running an older version of Substance Painter.

After updating to V10 I found what I was looking for and managed to get it up and running pretty quickly.

Thank you for pointing me in the right direction by mentioning it was added in 10.0