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.
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.
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);
}
}
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).
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!