DAZ Script | |
---|---|
Boolean | canImport ( String filename ) |
DzImporter | findImporter ( String filename ) |
DzImporter | findImporterByClassName ( String className ) |
Number | findImporterIndex ( String filename ) |
Number | getNumImporters () |
void | makeGeometryFileFilter ( DzFileFilter filter, String defaultFilter=“”, Boolean makeAllFilesEntry=true ) |
void | makeImportFileFilter ( DzFileFilter filter, String defaultFilter=“”, Boolean makeAllFilesEntry=true ) |
DAZ Script | |
---|---|
String | getImportFileName () |
String | getImportPath () |
Boolean | isImporting () |
DzError | readFile ( String filename, Number importerIdx=-1 ) |
DzError | readFile ( String filename, Number importerIdx, DzFileIOSettings options ) |
DzShape | readGeometry ( String filename, Number importerIdx, DzFileIOSettings options ) |
DzShape | readGeometry ( String filename, Number importerIdx=-1 ) |
void | setImportFileName ( String fileName ) |
void | setImportPath ( String path ) |
void | fileImported () |
void | fileImportStarting () |
There is only one instance of this manager in an application. This instance is created and owned by DzApp. Request the instance via DzApp::getImportMgr().
See Also:
Boolean : canImport( String filename )
Calls recognize() on each of the importers and attempts to match an importer with the filename.
Parameter(s):
Return Value:
true
if an importer was found that can read the given file.DzImporter : findImporter( String filename )
Calls recognize() on each of the importers and attempts to match an importer with the filename.
Parameter(s):
Return Value:
DzImporter : findImporterByClassName( String className )
Attempts to locate an importer class type by name.
Parameter(s):
Return Value:
Number : findImporterIndex( String filename )
Calls recognize() on each of the importers and attempts to match an importer with the filename.
Parameter(s):
Return Value:
Return Value:
void : makeGeometryFileFilter( DzFileFilter filter, String defaultFilter=“”, Boolean makeAllFilesEntry=true )
Populates the given filter with all the geometry types recognized by the import manager.
Parameter(s):
void : makeImportFileFilter( DzFileFilter filter, String defaultFilter=“”, Boolean makeAllFilesEntry=true )
Populates the given filter with all the types recognized by the import manager.
Parameter(s):
true
, an extra filter is appended to the list that matches all the valid extensions.Gets the full import file name.
Return Value:
String : getImportPath()
Gets the default import directory - this is typically the last directory that the user imported a file from, and will be the directory that user will be taken to next time the file import dialog is displayed.
Return Value:
Boolean : isImporting()
Return Value:
true
if there is currently a file being imported, otherwise false
.DzError : readFile( String filename, Number importerIdx=-1 )
Import the contents of a file into the scene.
Parameter(s):
Return Value:
DzError : readFile( String filename, Number importerIdx, DzFileIOSettings options )
Import the contents of a file into the scene.
Parameter(s):
Return Value:
DzShape : readGeometry( String filename, Number importerIdx, DzFileIOSettings options )
Reads the geometry file into a new shape.
Parameter(s):
Return Value:
DzShape : readGeometry( String filename, Number importerIdx=-1 )
Reads the geometry file into a new shape.
Parameter(s):
Return Value:
void : setImportFileName( String fileName )
Sets the import file name - this is the full file name that file was import
Parameter(s):
void : setImportPath( String path )
Sets the default import directory - this is the directory that user will be taken to next time the file import dialog is displayed.
Parameter(s):
void : fileImported()
Signature:“fileImported()”
Emitted after importing a file. This may not always be emitted after every fileImportStarting() signal if there were errors during file loading.
void : fileImportStarting()
Signature:“fileImportStarting()”
Emitted just before importing a file.