Exporter

This set of functions provides access to the project's export directory. The following is a list of the Exporter functions:

cleanExportDir
getExportDir

Example

var exportDir = Application.exporter.getExportDir();

var exportFile = exportDir + "paletteList.txt";

 

var logFile = new File(exportFile);

logFile.open(File.WriteOnly);

logFile.writeLine(scene.currentScene() + " palettes:");

logFile.writeLine("");

 

var numPalettes = PaletteManager.getNumPalettes();

for (i = 0; i < numPalettes; ++i)

{

var paletteName = PaletteManager.getPaletteName(i);

logFile.writeLine(paletteName);

}

 

MessageBox.information("Palette list exported to: " + exportFile);

Related Topics 

Scripting Reference