Bug in DS v4.24.0.3 Beta: DzSIReloadAction sets getScriptFileName() == ""

PraxisPraxis Posts: 274

This bug was in DS v4.11.0.236 (see this thread: 333656/bug-since-ds-v4-11-0-236-dzsireloadaction-sets-getscriptfilename).

It was fixed in DS v4.15.0.25, August 2021

It does not exist in DS v4.21.0.5 Beta

It has re-appeared in DS v4.24.0.3 (or earlier?).
Support Ticket 481776 submitted 10-November-2025

It can be reproduced using the following code (also attached as test_01.dsa):

// test_01.dsa
// Script to illustrate a bug in DAZ Studio v4.24.0.3 Beta: 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.21.0.5 Beta:
//    Works OK, including after executing DzSIReloadAction
//
// In v4.24.0.3 Beta:
//    Works OK, until after executing DzSIReloadAction
//      then getScriptFileName() always == ''
print( ' ' );

In the v4.24.0.3 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() == ""

 

dsa
dsa
test_01.dsa
660B
Post edited by Praxis on
Sign In or Register to comment.