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

getProjectExportPreset inaccurate results

New Here ,
Oct 21, 2022 Oct 21, 2022

Copy link to clipboard

Copied

When running the getProjectExportPreset() call in JavaScript the value reported back is the value saved to the Project, not what the user selected in the UI when running the export. Can someone confirm this and let me know how to get the value at execution of the Export Textures dialog. Attached is a picture that shows the value of "Output template" when the UI is first launched, when I change the value, and the printed results of the following code:

var preset = alg.mapexport.getProjectExportPreset()
alg.log.info("Testing presets...")
alg.log.info(preset)

The same result happens when I run the following in Python:

js_code = 'alg.mapexport.getProjectExportPreset()'
template = substance_painter.js.evaluate(js_code)
print(template)

 Please advise on how to get this value in Python, if possible.

Bug Unresolved
TOPICS
Bugs & Crashes , Scripting

Views

36

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
no replies

Have something to add?

Join the conversation
Resources