Hello,
You can use the exportSDGraphOutputs function in the sd.tools.export module. This is its description:
sd.tools.export.exportSDGraphOutputs(aSDGraph, aOutputDir='', aFileExt='png')
Description: Export the textures of the output node of the specified SDGraph
Arguments:
- aSDGraph: The graph that contains the outputs to export
- aOutputDir: The output directory used to save the output’s images
- aFileExt: The exported file format
Returns: True if succeed else False
You can set up a custom UI to start the export using this function and use the returned boolean to trigger a check out.
In Designer, the Help menu lets you access the Scripting documentation, which is a library of classes, functions and objects available in the Python API.
Best regards.