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

Plugin development

New Here ,
Oct 17, 2024 Oct 17, 2024

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!

TOPICS
Scripting
153
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 13, 2025 Jan 13, 2025
LATEST

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

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