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

python access to output templates in texture export window

New Here ,
Jun 03, 2022 Jun 03, 2022

Copy link to clipboard

Copied

Is there access to the list of preset output templates available to the Export textures window via python API?

I have tried 

substance_painter.resource.search('u:export')

and 

substance_painter.resource.search('u:EXPORT')

to no avail. Further, this snippet:
 

    resources=substance_painter.resource.search('')

    for resource in resources:
        substance_painter.logging.log(
            substance_painter.logging.INFO, 
            'testing',
            'resource is %s' % resource.identifier().name
            )

  

never prints any of the export presets to the log. Should I expect to see i.e. 'CryEngine' in the log with the above code?

 

Ultimately, our goal is to hide from the user any export defaults we don't think are necessary for studio work. We would like to do that without removing the painter installation path from the list of available resources if at all possible. 

 

Thanks,

Chris

TOPICS
Import & Export , Scripting

Views

124

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
New Here ,
Sep 12, 2022 Sep 12, 2022

Copy link to clipboard

Copied

LATEST

any solutions for this? i would also like to query the output templates already existing in the project

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