Author Topic: Execute javascript from python  (Read 288 times)

Is it possible to execute the js api using the python api. I need to do this since in the python api is rather limiting and doesn't support the need for exporting maps as i would normally do is js using this code below:

Code: [Select]
alg.log.info(alg.mapexport.exportDocumentMaps(
       "D:/projects/tools/substance/substance_painter/export-presets/Basic.spexp",
       "c:/tmp/export/pbr",
       "tiff"
     ));

It doesn't appear the python api allows you to specify the path to an export preset and it actually export.