MarkusR
Member
this function output object parameterInfo into console.
i need this because the names in the ui are not the same in script.
screenshot from ms vs code editor at Mac
console tab
displayed properties in the cheetah ui
i need this because the names in the ui are not the same in script.
/** output object parameter infos into cheetah 3d console tab
printObjectParameters(box1);
box1.setParameter("position", new Vec3D(0,0,0));
box1.setParameter("sizeX", width);
*/
function printObjectParameters(obj) {
var pCount = obj.parameterCount();
//print(pCount);
var pl = obj.parameterInfo(); // String[][]
//clearConsole();
print("Object Parameters:");
print("----");
for(var z = 0; z < pl.length; z++) { // count of parameters
for(var i = 0; i < pl[z].length; i++) { // name and type
print(pl[z][i]);
}
print("----");
}
}
screenshot from ms vs code editor at Mac
console tab
displayed properties in the cheetah ui
Last edited: