A Heads-Up in case you are suddenly getting wierd problems in your scripts with v4.11.0.383:
Here's the test script (also attached as test_01.dsa):
// test_01.dsa
// Script to illustrate a bug in DAZ Studio v4.11.0.383 DzSIReloadAction
// DzSIReloadAction can be triggered e.g. by menu: Script IDE Pane > File > Reload Script
print( App.longVersionString );
print( ' ' );
var sFileSpec = getScriptFileName();
print( sFileSpec );
print( ' ' );
if( sFileSpec == '' ) {
print( '### BUG ###: getScriptFileName() == ""' );
} else {
print( 'OK' );
}
//
// In v4.10.0.123:
// Works OK, including after executing DzSIReloadAction
//
// In v4.11.0.383:
// Works OK, until after executing DzSIReloadAction
// then getScriptFileName() always == ''
print( ' ' );
In the v4.11.0.383 Script IDE Pane:
- File > Open Script... // Open test_01.dsa
- [Execute] // It works OK: getScriptFilename() != ""
- File > Reload Script
- [Execute] // BUG: getScriptFilename() == ""
- File > Open Script... // Open test_01.dsa
- [Execute] // BUG: getScriptFilename() == ""
- File > Close Script
- File > Open Script... // Open test_01.dsa
- [Execute] // It works OK: getScriptFilename != ""
- File > Reload Script
- [Execute] // BUG: getScriptFilename() == ""
Request #293041 submitted 03-March-2019