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

load HTML file in a script

$
0
0

I was looking in the example file for "Simple Text Browser Dialog", and I noticed at the end of the script, it's loading a HTML file from inside the DAZ Studio application folder. What if I want to open up a HTML within a script file. For instance, I have a DAZ script file and a simple HTML file in the same folder within my Library. 

at the very end, I found this script section where it's loading the file.

( String("%1/DAZ Studio").arg( App.getDocumentationPath() ), "what_is_studio.htm" );

What I am trying to do is to load the HTML file from the same folder where my DSA script file is. I tried this code to no avail.

( String("/Scripts").arg( App.getAbsoluteScriptPath() ), "MY_HTML_FILE.html" );

Any idea of a way to point the script to load the HTML file within my script folder?


Viewing all articles
Browse latest Browse all 1036

Trending Articles



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