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];
}