DAZ Script | |
---|---|
DzOpenMethod | { DefaultMethod, OpenNew, MergeFile } |
DAZ Script | |
---|---|
DzAssetIOFilter | currentSaveFilter () |
Number | findAssetFilterIndex ( String className ) |
Number | findFilter ( String className ) |
QObject | findObjectInstance ( DzUri uri ) |
DzAssetIOFilter | getAssetFilter ( Number i ) |
String | getAssetFilterName ( Number i ) |
DzAssetIOFilter | getFilter ( Number i ) |
String | getFilterName ( Number i ) |
Number | getNumAssetFilters () |
Number | getNumFilters () |
Boolean | isReading () |
Boolean | isReadingOrWriting () |
Boolean | isWriting () |
DAZ Script | |
---|---|
DzError | doLoad ( String filename, DzOpenMethod method=DefaultMethod, DzFileLoadFilter filter=null ) |
DzError | doSave ( Number filterIndex ) |
DzError | doSaveWithOptions ( DzAssetIOFilter filter, DzFileIOSettings options, Boolean saveOnly=false, String filename=“”, String startingDir=“”, String category=“” ) |
DzError | doSceneSaveAs () |
DzAuthor | getCurrentAssetContributor () |
String | getCurrentAssetId () |
DzVersion | getCurrentAssetRevision () |
String | getCurrentAssetType () |
Object | getCurrentFileInfo () |
String | getCurrentFilename () |
DzVersion | getCurrentFileVersion () |
String | getDefaultDSONAssetCachePath () |
String | getDSONAssetCachePath () |
DzAuthor | getFileAssetContributor ( String filename ) |
String | getFileAssetType ( String filename ) |
Object | getFileInfo ( String filename ) |
DzVersion | getFileVersion ( String filename ) |
String | getLoadPath () |
String | getSavePath () |
DzError | loadFromUri ( DzUri fileUri, DzOpenMethod method=DefaultMethod, DzFileLoadFilter filter=null ) |
void | setDSONAssetCachePath ( String cacheFullPath ) |
void | assetImported () |
void | assetImportStarting () |
void | assetLoadError ( String filename ) |
void | assetLoadFinished ( String filename ) |
void | assetLoadStarted ( String filename ) |
void | assetSaved () |
void | assetSaveError ( String filename ) |
void | assetSaveFinished ( String filename ) |
void | assetSaveStarted ( String filename ) |
Responsible for the management of the filters that load/save assets in the native DAZ Scene Object Notation (DSON) format.
There is only one instance of this manager in an application. This instance is created and owned by DzApp. Request the instance via DzApp::getAssetIOMgr().
See Also:
Enumerated open methods.
DzAssetIOFilter : currentSaveFilter()
Return Value:
Since:
Number : findAssetFilterIndex( String className )
Parameter(s):
Return Value:
Since:
Number : findFilter( String className )
Deprecated
Exists only to keep old code working. Do not use in new code. Use getAssetFilter() instead.
QObject : findObjectInstance( DzUri uri )
Parameter(s):
Return Value:
Since:
DzAssetIOFilter : getAssetFilter( Number i )
Parameter(s):
Return Value:
Attention:
Since:
String : getAssetFilterName( Number i )
Parameter(s):
Return Value:
Since:
DzAssetIOFilter : getFilter( Number i )
Deprecated
Exists only to keep old code working. Do not use in new code. Use getAssetFilter() instead.
String : getFilterName( Number i )
Deprecated
Exists only to keep old code working. Do not use in new code. Use getAssetFilterName() instead.
Return Value:
Since:
Number : getNumFilters()
Deprecated
Exists only to keep old code working. Do not use in new code. Use getNumAssetFilters() instead.
Return Value:
false
.Since:
Boolean : isReadingOrWriting()
Return Value:
false
.Since:
Return Value:
false
.Since:
DzError : doLoad( String filename, DzOpenMethod method=DefaultMethod, DzFileLoadFilter filter=null )
Loads an asset file.
Parameter(s):
Return Value:
See Also:
DzError : doSave( Number filterIndex )
Save the scene contents to a file with the given asset filter. Prompts the user for a file to save to.
Parameter(s):
Return Value:
DzError : doSaveWithOptions( DzAssetIOFilter filter, DzFileIOSettings options, Boolean saveOnly=false, String filename=“”, String startingDir=“”, String category=“” )
Save the scene contents to a file with the given asset filter. Prompts the user for a file to save to.
Parameter(s):
Return Value:
DzError : doSceneSaveAs()
Save the scene contents to a file. Prompts the user for a file to save to.
Return Value:
DzAuthor : getCurrentAssetContributor()
Return Value:
false
, an invalid DzAuthor. If isReading() is true
, the contributor for the file being read. If isWriting() is true
, the contributor for the file being written.See Also:
Since:
Return Value:
false
, an empty string. If isReading() is true
, the asset identifier for the file being read. If isWriting() is true
, the asset identifier for the file being written.See Also:
Since:
DzVersion : getCurrentAssetRevision()
Return Value:
false
, an invalid DzVersion. If isReading() is true
, the revision for the file being read. If isWriting() is true
, the revision for the file being written.See Also:
Since:
String : getCurrentAssetType()
Return Value:
false
, an empty string. If isReading() is true
, the asset type for the file being read. If isWriting() is true
, the asset type for the file being written.See Also:
Since:
Return Value:
false
, an empty object. If isReading() is true
, an object containing “file_version” and “asset_info” for the file being read. If isWriting() is true
, an object containing “file_version” and “asset_info” for the file being written.Since:
Return Value:
Since:
DzVersion : getCurrentFileVersion()
Return Value:
false
, an invalid DzVersion. If isReading() is true
, the “file_version” for the file being read. If isWriting() is true
, the “file_version” for the file being written.See Also:
Since:
String : getDefaultDSONAssetCachePath()
Return Value:
String : getDSONAssetCachePath()
Return Value:
See Also:
DzAuthor : getFileAssetContributor( String filename )
Parameter(s):
Return Value:
See Also:
Since:
String : getFileAssetType( String filename )
Parameter(s):
Return Value:
See Also:
Since:
Object : getFileInfo( String filename )
Parameter(s):
Return Value:
Since:
DzVersion : getFileVersion( String filename )
Parameter(s):
Return Value:
See Also:
Since:
String : getLoadPath()
Return Value:
String : getSavePath()
Return Value:
DzError : loadFromUri( DzUri fileUri, DzOpenMethod method=DefaultMethod, DzFileLoadFilter filter=null )
Loads an asset from URI.
Parameter(s):
Return Value:
See Also:
void : setDSONAssetCachePath( String cacheFullPath )
Sets the path for the DSON asset cache.
Parameter(s):
See Also:
void : assetImported()
Signature:“assetImported()”
Emitted when an asset has been loaded.
void : assetImportStarting()
Signature:“assetImportStarting()”
Emitted when an asset load is starting.
void : assetLoadError( String filename )
Signature:“assetLoadError(const QString&)”
Emitted when an asset load error occures.
Parameter(s):
Since:
void : assetLoadFinished( String filename )
Signature:“assetLoadFinished(const QString&)”
Emitted when an asset load is finished.
Parameter(s):
Since:
void : assetLoadStarted( String filename )
Signature:“assetLoadStarted(const QString&)”
Emitted when an asset load has started.
Parameter(s):
Since:
void : assetSaved()
Signature:“assetSaved()”
Emitted when an asset has been saved.
void : assetSaveError( String filename )
Signature:“assetSaveError(const QString&)”
Emitted when an asset save error occurs.
Parameter(s):
Since:
void : assetSaveFinished( String filename )
Signature:“assetSaveFinished(const QString&)”
Emitted when an asset save is finished.
Parameter(s):
Since:
void : assetSaveStarted( String filename )
Signature:“assetSaveStarted(const QString&)”
Emitted when an asset save has started.
Parameter(s):
Since: