Base class for filters that save script-based scene settings. (deprecated).
Inherits :
DAZ Script | |
---|---|
ScriptFileMode | { UseExtension, TextScriptFile, DAZScriptFile, EncDAZScriptFile } |
DAZ Script | |
---|---|
String | getDescription () |
String | getLoadSavePath () |
void | setLoadSavePath ( String path ) |
DzError | writeFile ( String filename, ScriptFileMode mode ) |
DzError | writeFile ( String filename, ScriptFileMode mode, DzFileIOSettings options ) |
Deprecated
Save filters save out a subset of scene settings such as poses, light sets, camera sets, etc. in DAZ Script format. Script based presets are deprecated in favor of those in the DAZ Scene Object Notation (DSON) format.
See Also:
String : getDescription()
Return Value:
TODO: Add description.
void : setLoadSavePath( String path )
TODO: Add description.
DzError : writeFile( String filename, ScriptFileMode mode )
Saves to a file.
Parameter(s):
Return Value:
Example:
Export a DAZ Script based Pose Preset.
var oSaveFilterMgr = App.getSaveFilterMgr(); var nSaveFilter = oSaveFilterMgr.findFilter( "DzPoseFilter" ); var oSaveFilter = oSaveFilterMgr.getFilter( nSaveFilter ); if( oSaveFilter ){ oSaveFilter.writeFile( "c:/test", oSaveFilter.TextScriptFile ); }
DzError : writeFile( String filename, ScriptFileMode mode, DzFileIOSettings options )
Saves to a file.
Parameter(s):
Return Value:
Example:
Export a DAZ Script based Pose Preset, without displaying the Save Options dialog.
var oSaveFilterMgr = App.getSaveFilterMgr(); var nSaveFilter = oSaveFilterMgr.findFilter( "DzPoseFilter" ); var oSaveFilter = oSaveFilterMgr.getFilter( nSaveFilter ); if( oSaveFilter ){ var oSettings = new DzFileIOSettings(); //oSaveFilter.getDefaultOptions( oSettings ); oSaveFilter.getOptions( oSettings, false, "c:/test" ); oSaveFilter.writeFile( "c:/test", oSaveFilter.TextScriptFile, oSettings ); }