How use DzScript to load '.js' file extension?

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

  • rbtwhizrbtwhiz Posts: 2,250

    *.js is not a DAZ Script extension. Only DAZ Script extensions are supported; i.e. ds[a|b|e].

    -Rob

  • jag11jag11 Posts: 885

    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..

    rbtwhiz said:

    *.js is not a DAZ Script extension. Only DAZ Script extensions are supported; i.e. ds[a|b|e].

    -Rob

Sign In or Register to comment.