Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1036

silent saving doesnt save

$
0
0

Hi everyone,

I started a little scripting project and ran into a problem. The endgoal is to loop over the frames of the timeline in a scene and save each frame as a posePresetFile in a defined folder.

For this goal the first step would be to save a file without user interaction. I know this is a pretty old hat and i looked at the given example and found an older thread with close to this code:

// DAZ Studio version 4.12.0.86 filetype DAZ Script

var oAssetIOMgr = App.getAssetIOMgr();
var nAssetIOFilter = oAssetIOMgr.findFilter( "DzPoseAssetFilter" );
var oAssetIOFilter = oAssetIOMgr.getFilter( nAssetIOFilter );
if( oAssetIOFilter ){
	var oSettings = new DzFileIOSettings();
	oAssetIOFilter.getDefaultOptions( oSettings );
	//save only the current frame
	oSettings.setBoolValue("SaveCurFrame",true);
	oSettings.setBoolValue("CompressOutput",true);
	oSettings.setBoolValue("RunSilent",true);
	oAssetIOMgr.doSaveWithOptions(oAssetIOFilter,oSettings,true,"g:/frame000.duf");
}

The problem is that the file flat out isnt saved. The output only says "Running silent. No "NodeNames" defined. (in case this show an obvious error that i dont get).

Have i gotten the path wrong? or am i on the completly wrong track in the first place. Thanks for any pointers ^^


Viewing all articles
Browse latest Browse all 1036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>