Author Topic: Export textures with exportDocumentMaps function is clearer than manual export  (Read 22622 times)


I encounter a problem when I do a textures export with the exportDocumentMaps function.
The export with exportDocumentMaps fuction is clearer than manual export for all.

I created a preset with this configuration:
Code: [Select]
baseColor       16bit   RGB
metalness       8bit   Gr
roughness       8bit     Gr
normal            16bit    RGB
height             32bit    Gr
opacity            8bit      Gr
emissive         16bit    RGB

All channels are imported in Maya in a aiImage node, color space set to RAW.
It seems like the color space is different when exporting with a script than with the file/export textures tool.
I use substance painter v2019.1.2.

Code: [Select]
                    config_export_name, //preset
                    export_path, //path
                    "exr", //format

Example of manual export (good export):

Example of script export (bad export):

Thanks for your help.

You need to specify the bit depth in you mapInfo for your export command :
Code: [Select]
alg.mapexport.exportDocumentMaps( config_export_name, export_path, "exr", {"bitDepth":32} );The EXR export only supports 32bits, not 8 or 16bits. By default the mapInfo is set to 8bit. See the documentation for more information about the mapInfo object.
Don't forget your log file. It can be exported from the Help menu of the software.
Fabrice Piquet aka Froyok. Product Manager, Technical Artist and Documentation at Adobe.


Thank you the problem is solved.