プロパティーを見つける(最初に見つかったプロパティ)

参考 - 公式情報

http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/properties/node_properties/start

使い方

findParam('Face Round');

関数

(function () {

    var aPROPERTIES;

    function getGroupProperties(oGROUP, bTRAVERSE, bRECURSE) {
        var aProperties = new Array();
        if (!oGROUP) { return aProperties; }
        else {
            const nPROPERTIES = oGROUP.getNumProperties();
            for (var i = 0; i < nPROPERTIES; i++) {
                aProperties.push(oGROUP.getProperty(i));
            }

            if (bRECURSE) { aProperties = aProperties.concat(getGroupProperties(oGROUP.getFirstChild(), bTRAVERSE, bRECURSE)); }
            if (bTRAVERSE) { aProperties = aProperties.concat(getGroupProperties(oGROUP.getNextSibling(), bTRAVERSE, bRECURSE)); }
        }
        return aProperties;
    }

    function getNodeProperties(oNODE, bTRAVERSE, bRECURSE) {
        const oPROPERTY_GROUP_TREE = oNODE.getPropertyGroups();
        const oPROPERTY_GROUP = oPROPERTY_GROUP_TREE.getFirstChild();
        return getGroupProperties(oPROPERTY_GROUP, bTRAVERSE, bRECURSE);
    }

    function findParam(labelName) {
        for (var i = 0; i < aPROPERTIES.length; i++) {
            p = aPROPERTIES[i];
            if (p.getLabel() == labelName) {
                print(labelName + ',' + p.getMin() + ',' + p.getDefaultValue() + ',' + p.getMax());
                return;
            }
        }
        print('NG : ' + labelName);
        return null;
    }

    oNODE = Scene.getPrimarySelection();
    if (oNODE) {
        aPROPERTIES = getNodeProperties(oNODE, true, true);
    }

    findParam('Face Round');
    findParam('RS Face Round 01');

})();