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

Problem with "include()"

$
0
0

Hi,

As I understand it, the 'include()' function can only be used outside of the anonymous function that we're supposed to use for starting scripts.  For example:

include("C:\Users\fred\OneDrive\Scripts\My DAZ Library.dsa");

(

function() {

// My code starts here

}

)( )

This bothers me mainly because if I define functions/objects in "My DAZ Library.dsa", I have to somehow make sure that the names of those functions

don't clash with whatever global variables/functions that already exist.  How do I do that?  Do I invent some strange, annoyingly long names which

are simply unlikely to ever be used by the DAZ devs?  Is there a more elegant solution to this problem?


Viewing all articles
Browse latest Browse all 1036

Trending Articles



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