Author Topic: Define Filenames on exportSDGraphOutputs  (Read 257 times)

Hi,

Is there a way which I can specify filenames for my outputs, when using exportSDGraphOutputs?

The Exporter module doesn't provide a way to do that.

Code: [Select]
def exporter(self, destinationPath):
        #Export the graph's Outputs to the destination folder, as a PSD file
       
        exportSDGraphOutputs(self.sdGraph, aOutputDir= destinationPath, aFileExt='psd')

Any help is very much appreciated.

Cheers,

Hi,

Currently it is not possible to specify filenames for outputs.

You can find the code for exportSDGraphOutputs in export.py in the API folder.
It is short and easy to follow. You can copy it and modify it to do what you need.

Est.

Hi Esteban,

It worked.
 Export.py has everything I was looking for. Thanks for your help.

Cheers,

Cristiano