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');
})();