Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Using Python to develop Export tool

New Here ,
Jul 04, 2021 Jul 04, 2021

Copy link to clipboard

Copied

I write according to the contents of the document, but in the export phase. Export presets need to be configured.

 

 

    export_preset = substance_painter.resource.ResourceID(
        # context="allegorithmic", name="PBR Metallic Roughness")
        context="allegorithmic",
        name="SP—UE4 Tile UDIMs(TextureSet)")

 

 

I created a set of presets based on the documentation,the name is SP—UE4 Tile UDIMs(TextureSet) .When I try to use this preset in my code,Code execution error.

 

[Python] For exportList item #0, the preset "resource://allegorithmic/SP—UE4 Tile UDIMs(TextureSet)" is undefined

 

How do I use local default files with python

TOPICS
Import & Export, Scripting

Views

128

Likes

Translate

Translate

Report

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

correct answers 1 Correct answer

Adobe Employee , Jul 08, 2021 Jul 08, 2021
When building the resource ID you need to provide the right context. In the example "allegorithmic" is the name of the Shelf for the default content, your export preset is not stored there but instead in the location where you can save new resources (usually the user Shelf location named "shelf" by default).

Likes

Translate

Translate
Adobe Employee ,
Jul 08, 2021 Jul 08, 2021

Copy link to clipboard

Copied

LATEST

When building the resource ID you need to provide the right context. In the example "allegorithmic" is the name of the Shelf for the default content, your export preset is not stored there but instead in the location where you can save new resources (usually the user Shelf location named "shelf" by default).

Likes

Translate

Translate

Report

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
Resources