Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1067

Multiple script files

$
0
0

Is it possible to call functions defined in other script files?

For example:
helperScript.dsa


function sayHello(){
print("hello world!");
}

testScript.dsa

import "helperScript.dsa"

sayHello();

I have attempted to use an import command with no success. It seems to be an unrecognized command, but the error message is fairly cryptic:

SyntaxError: Parse error
Stack Trace:
 <anonymous>()@:1

(I indeed know what a syntax error is, but it's unclear if the command is unrecognized or if i'm consuming a supported command with invalid syntax. A column number would help immensely with this sort of thing.)

I have pored through the examples, and I'm not seeing anything similar. I've also perused Qt documentation (which is what put me on the idea of the import command).
I appreciate the insight.


Viewing all articles
Browse latest Browse all 1067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>