Python Script Engine  1.0
GL Studio Editor Python Script API
GlsPSDImporter Class Reference

Public Member Functions

GroupImport (String filename, Document doc, bool generateNewObjects, bool reposition, float scale, bool forceUseOriginalNames=false, bool atlasNewObjects=true)
 
void Import (String filename, Group *grp, bool generateNewObjects, bool reposition, float scale, bool forceUseOriginalNames=false, bool atlasNewObjects=true)
 

Static Public Member Functions

static GlsPSDImporterGetInstance (void)
 

Detailed Description

Plug-in used to import PSD files into GL Studio.

Member Function Documentation

static GlsPSDImporter& GlsPSDImporter::GetInstance ( void  )
static
Group* GlsPSDImporter::Import ( String  filename,
Document  doc,
bool  generateNewObjects,
bool  reposition,
float  scale,
bool  forceUseOriginalNames = false,
bool  atlasNewObjects = true 
)

Imports a PSD file using the PSD Importer.

Parameters
filenameName of the file to import
docDocument into which the file should be imported
generateNewObjectsFlag to determine if the imported objects should be generated as new objects
repositionFlag to determine if the imported objects should be repositioned
scaleScale to be applied to the newly imported objects
forceUseOriginalNamesForce the psd importer to use the original names (does not create unique names)
atlasNewObjectsFlag to determine if the imported objects should be exported to a single file(atlased) or one for each image.
Returns
A group containing objects imported from the PSD file
Exceptions
CEIException
void GlsPSDImporter::Import ( String  filename,
Group grp,
bool  generateNewObjects,
bool  reposition,
float  scale,
bool  forceUseOriginalNames = false,
bool  atlasNewObjects = true 
)

Imports a PSD file using the PSD Importer.

Note
new group is not automatically added to the document
Precondition
Parent document of group is not null
Parameters
filenamefilename of PSD file to import
[in,out]grpThe group to insert the imported geometry into. Must already be in a Document.
generateNewObjectsFlag to determine if the imported objects should be generated as new objects
repositionFlag to determine if the imported objects should be repositioned
scaleScale to be applied to the newly imported objects
forceUseOriginalNamesForce the psd importer to use the original names (does not create unique names)
atlasNewObjectsFlag to determine if the imported objects should be exported to a single file(atlased) or one for each image.

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