Skip to main content
Participant
October 17, 2024
Question

Plugin development

  • October 17, 2024
  • 1 reply
  • 193 views

App: Substance painter

Version: 10.1.0

 

Hello im writing a python script that hooks into the `ExportTexturesAboutToStart` callback/event

substance_painter.event.DISPATCHER.connect_strong(substance_painter.event.ExportTexturesAboutToStart,my_func)

 But that only gets me the file destinations. I am using javascript to get the current project export preset 

export_preset = substance_painter.js.evaluate('alg.mapexport.getProjectExportPreset()')

But this does not tell me what overrides the user has made. Is there a way to get that information? If they changed file formats or bit depths? Best thing is just to get all the final export information into a json file.

 

I also have noticed there's no way to change projects colorspace, I want to make sure the project is using 'ACES 1.2' before the user exports.

 

The end goal is to use that information in other dcc to recreate the shader (no matter how the artist set it up). Without forcing the artist to use a preset.

 

I am using the substance python api that comes with substance install and it does not seem to contain that information. I dont want to query all that information from the QT Ui as its very ugly and could easily break.

 

Thank you!

1 reply

Participant
January 13, 2025

Hello, it's been a while and I was hoping for a reply 🙂