Python Script Engine  7.2
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, bool useCtlTextBox=false, bool useRuntimeFonts=false)
 
void Import (String filename, Group *grp, bool generateNewObjects, bool reposition, float scale, bool forceUseOriginalNames=false, bool atlasNewObjects=true, bool useCtlTextBox=false, bool useRuntimeFonts=false)
 

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,
bool  useCtlTextBox = false,
bool  useRuntimeFonts = false 
)

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.
useCtlTextBoxFlag to determine if text objects should use CTL textboxes
useRuntimeFontsFlag to determine if text objects should use runtime fonts
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,
bool  useCtlTextBox = false,
bool  useRuntimeFonts = false 
)

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.
useCtlTextBoxFlag to determine if text objects should use CTL textboxes
useRuntimeFontsFlag to determine if text objects should use runtime fonts
Exceptions
CEIException

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