Author Topic: Command Line Export  (Read 1611 times)

Code: [Select]
spainter.exe --projectFile "sample.spp" --exportpath $FILE_DIR+"\\textures" --settings "4k, {albedo, normal, metallic, ao}"

Code: [Select]
spainter.exe --projectFilesDir "bunchOfSpp" --exportpath $EACH_FILE_DIR+"\\textures" --settings "4k, {albedo, normal, metallic, ao}"

The answer is "Yes"

More seriously, don't hesitate to make a complete sentence, so we know what you have in mind ;)

I guess you would like to export map(s) via command line (?)
Did you have a look at the scripting documentation?

It is possible to do this currently, but it is not a nice implementation.

From your external tool, you can dynamically build a Painter plugin which is set to run on startup, deploy the plugin, run Painter and let the plugin open a file, export the textures and then close Painter. It works, but it is not particularly robust or nice approach.

It's also possible to control Painter remotely from your external tool using the QML websocket interface - I would link you to the scripting API documentation page but it is not available online .. ?
Last Edit: August 29, 2017, 04:50:24 pm
Rocksteady Ltd | Senior Technical Artist