Skip to main content
Participant
August 7, 2023
Question

Substance painter python, custom export

  • August 7, 2023
  • 1 reply
  • 581 views

Current trying to create a python script that will export a custom Output template in one click.

 

I'm trying to use a custom preset from an external location, example "C:\Users\Name\Documents\Adobe\Adobe Substance 3D Painter\assets\export-presets. The custom preset is called Test_Preset.spexp.

 

export_preset = substance_painter.resource.ResourceID(
                        context="starter_assets",
                        name="PBR Specular Glossiness")

 

The variable above will build the export preset resource URL for output templates that comes with Painter, but I cant seem to locate what the context should be if I use a custom preset.

 

export_preset = substance_painter.resource.ResourceID(
                        context="????????",
                        name="Test_Preset")
 
Any help will be appreciated.
This topic has been closed for replies.

1 reply

Participating Frequently
August 30, 2023

context="your_assets"