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

Getting a list of Scripted renderers

$
0
0

Is there a "good" way to determine what Scripted 3Delight Render Scripts are available for use from within the DAZ Studio client?

 

My current implementation is iterating the subdirectories of

String("%1/Scripted Renderer/").arg(App.getResourcesPath());

and assuming each folder contains a registered script of the same name, which seems to make a lot of assumptions that the folders and names match. So, is there a "right" way to know what scripts are available?

var sScriptedRendererBasePath = String("%1/Scripted Renderer/").arg(App.getResourcesPath());
var oDir = new DzDir(sScriptedRendererBasePath);
var aEntryList = oDir.entryList("");
var aScriptedRendererScriptNames = new Array();

for (var i = 0; i < aEntryList.length; i++) {
        if (aEntryList[i] === "." || aEntryList[i] === "..")
            continue;
        aScriptedRendererScriptNames[aScriptedRendererScriptNames.length] = aEntryList[i];
    }

 


Viewing all articles
Browse latest Browse all 1067

Trending Articles



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