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

No data before export in "maps" variable when exporting only converted map "Mixed AO"

New Here ,
Dec 21, 2023 Dec 21, 2023

Copy link to clipboard

Copied

I am using Substance 3D Painter 9.0.0 on Windows 10.

 

The template I am using to export the textures has several output maps, including one with ambient occlusion info (RGB "Mixed AO" - Grayscale). I want to export for each of my texture sets only the output map for ambient occlusion.

Sarah21905073n32a_1-1703169023600.pngSarah21905073n32a_2-1703169075526.pngSarah21905073n32a_3-1703169166651.png


The export in itself works well: the texture filepaths are listed in the console of the "Export textures" window (tab "List of exports"), no error is displayed in the "LOG" window, the textures are created on disk and look good.

Sarah21905073n32a_4-1703169988181.png

 

The problem is that I cannot access the export data programmatically right before the export!
If I display the value of the variable "maps" in a Javascript plugin in function "onExportAboutToStart()", I get a dictionary with the texture set names as keys, but no value (we should get the texture filepaths as we get them in function "onExportFinished()")...

 

PainterPlugin {

    onExportAboutToStart: function(maps) {
        alg.log.info("onExportAboutToStart: ");

        alg.log.info("maps:");
        alg.log.info(maps);
    }

    onExportFinished: function(status, maps) {
        alg.log.info("onExportFinished: ")

        if (status == Export.Status_Error || status == Export.Status_Canceled) {
            alg.log.error("Export failed.");
            return;
        }

        alg.log.info("Export succeeded.")

        alg.log.info("maps:");
        alg.log.info(maps);
    }

}

 

Sarah21905073n32a_5-1703170319590.png


If I add another output map to my export process (in the example above "Base Color RGB"), then I do get the texture filepaths corresponding to both output maps in "maps" variable (and the export process in itself goes through without any issue).

Sarah21905073n32a_6-1703170964359.pngSarah21905073n32a_7-1703171139300.pngSarah21905073n32a_8-1703171236478.png

 

FYI:
* It is not a problem of exporting only one output map: exporting only other kinds of output maps (ex base color, diffuse, etc.) works fine.
* The example provided in the screenshots only has 1 UDIM, but the behavior is the same with several UDIMs.
* The behavior remains no matter the channel chosen in the "Mixed AO" (Grayscale or Alpha).
* Observed the same behavior when exporting only the converted maps "Normal Direct X" or "Normal Open GL".

Is there any other way to programmatically access these data?

Thanks in advance!

Bug Unresolved
TOPICS
Import & Export , UV Tiles

Views

64

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