How use DzScript to load '.js' file extension?
jag11
Posts: 885
I'd like to know how to use the DzScript class to load a script with the '.js' file extension instead of the .dsa
var oScript = new DzScript();oScript.loadFromFile("test.js"); // failsoScript.loadFromFile("test.dsa"); // ok
Thanks in advance.
Comments
*.js is not a DAZ Script extension. Only DAZ Script extensions are supported; i.e. ds[a|b|e].
-Rob
Thx Rob.
Reason is I have a TypeScript project which produces .js files, I thought there was an easy(and maybe more elegant) solution than adding a Post-build event in Visual Studio to rename..