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?