Skip to main content
Participant
August 26, 2021
Question

Python Substance Painter Texture Export Error

  • August 26, 2021
  • 1 reply
  • 596 views

I followed the document and copied the code verbatum:
https://substance3d.adobe.com/documentation/spdoc/creating-a-python-plugin-197427756.html#section5

When I run the scrypt I get this error:

[Python] resource://allegorithmic/PBR Metallic Roughness
[Python] Traceback (most recent call last):

[Python] File "C:/Users/chasmll/Documents/Adobe/Adobe Substance 3D Painter/python\plugins\custom_export.py", line 55, in export_textures

[Python] substance_painter.export.export_project_textures( config )
[Python] File "C:/Program Files/Adobe/Adobe Substance 3D Painter/resources/python/modules\substance_painter\export.py", line 195, in export_project_textures

[Python] *_substance_painter.export.export_project_textures(json.dumps(json_config)))
[Python] ValueError
[Python] :
[Python] For exportList item #0, the preset "resource://allegorithmic/PBR Metallic Roughness" is undefined

I have the most current version of substance painter, is this document out dated? 

    This topic has been closed for replies.

    1 reply

    Participant
    September 2, 2021

    Same probleme.
    but with the old SuptancePainter version  6.2.2 it's working