Skip to main content
Participant
April 21, 2025
Question

Regarding the export_config for exporting only the specified range in uvTiles.

  • April 21, 2025
  • 0 replies
  • 89 views

When attempting to export a single texset with two UV tiles via the API, even though the export_config specifies the range as 'uvTitles': [[2, 1]], unnecessary textures within the range 'uvTitles': [[1, 1]] are also being exported. Is this a bug? Below, I have attached the complete JSON configuration used for the export.

 

Substance 3D Painter Version : 11.0.1 build4315

Platform : Windows

OS version : Windows 11 Pro 23H2

{
    'exportPath': 'testPath',
    'defaultExportPreset': 'test.spexp',
    'exportPresets': [
        {
            'name': 'FaceEyeR',
            'maps': [
                {
                    'channels': [
                        {'destChannel': 'R', 'srcChannel': 'R', 'srcMapName': 'user5', 'srcMapType': 'documentMap', 'srcPath': ''},
                        {'destChannel': 'G', 'srcChannel': 'G', 'srcMapName': 'user6', 'srcMapType': 'documentMap', 'srcPath': ''},
                        {'destChannel': 'B', 'srcChannel': 'B', 'srcMapName': 'user7', 'srcMapType': 'documentMap', 'srcPath': ''}
                    ],
                    'fileName': '$textureSetR_spc',
                    'parameters': {
                        'bitDepth': '8',
                        'dithering': True,
                        'fileFormat': 'png'
                    }
                }
            ]
        }
    ],
    'exportList': [
        {
            'rootPath': 'eye',
            'filter': {'uvTitles': [[2, 1]]},
            'exportPreset': 'FaceEyeR'
        }
    ],
    'exportParameters': [
        {
            'parameters': {
                'paddingAlgorithm': 'infinite',
                'dithering': True,
                'bitDepth': '8',
                'sizeLog2': 11
            },
            'filter': {'uvTitles': [[2, 1]]}
        }
    ],
    'exportShaderParams': False
}