Script
Public Slots | List of all members
exporter Class Reference

This set of functions provides access to the project's export directory. More...

#include <exportinterface.h>

Inheritance diagram for exporter:
Inheritance graph
[legend]
Collaboration diagram for exporter:
Collaboration graph
[legend]

Public Slots

void cleanExportDir ()
 removes all files from the project export directory.
 
QString getExportDir () const
 returns the path of the project export directory.
 
bool exportToQuicktime (const QString &displayName, int startFrame, int lastFrame, bool withSound, int resX, int resY, const QString &dstPath, const QString &displayModule, bool generateThumbnail, int thumbnailFrame)
 returns true if a scene was exported to a quicktime in the specified directory
 

Detailed Description

This set of functions provides access to the project's export directory.

var exportDir = exporter.getExportDir();
var exportFile = exportDir + "paletteList.txt";
var logFile = new File(exportFile);
// FileAccess is a 10.1 interface, 10.0 should use ints
// ReadOnly = 0x0001
// WriteOnly = 0x0002
// ReadWrite = 0x0003
// Append = 0x0004
// Truncate = 0x0008
// Translate = 0x0010
logFile.open(FileAccess.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);

Member Function Documentation

void exporter::cleanExportDir ( )
slot

removes all files from the project export directory.

bool exporter::exportToQuicktime ( const QString &  displayName,
int  startFrame,
int  lastFrame,
bool  withSound,
int  resX,
int  resY,
const QString &  dstPath,
const QString &  displayModule,
bool  generateThumbnail,
int  thumbnailFrame 
)
slot

returns true if a scene was exported to a quicktime in the specified directory

QString exporter::getExportDir ( ) const
slot

returns the path of the project export directory.


The documentation for this class was generated from the following file: