Output Path error

under “Saving and Caching” I click the folder icon to the right of "$default" and it throws an error in line 1100 of StokeUI.ms:

– Error occurred in pickOutputPath(); filename: C:\Program Files\Thinkbox\Stoke MX\Scripts\StokeUI.ms; position: 40180; line: 1100
– Frame:
– theNewPath: undefined
– called in mnu_pickOutputPath.picked(); filename: C:\Program Files\Thinkbox\Stoke MX\Scripts\StokeUI.ms; position: 41494; line: 1138
– Frame:

MAXScript RCMenu function Exception:
– Runtime error: $directory not recognized: $default\ <<

RC 2
Max 2013x64

Bug! Thanks!

Replace the line with

theNewPath = getSavePath initialDir:(getCachePath())

works great, thanks!

hi all,
i just recognized that there is (besides the one Joe/Bob mentioned above, which works fine here, too) an interesting workaround for this bug: if you select “EXPAND Base Output Path” first, and AFTER THAT select “PICK Base output path”, then it works as it should, without any error messages.
regards,
fuat

2012 x64, RC2

see attached screenshots.
OutputPath_02_AfterExpanding.jpg

Good point! The problem was that the string “$default” was stored in the variable passed as initial path to the directory picker, and MAXScript generally recognizes strings starting with $ as special shortcuts for typical paths, but $default is not one of them.
Running the Expand option converts the “$default” to the actual explicit path, and thus circumvents the problem. But we have to fix the real problem in the release version anyway :slight_smile: