Skip to content

Instantly share code, notes, and snippets.

@whoacowboy
Last active November 6, 2022 23:51
Show Gist options
  • Save whoacowboy/ba5e9e767af9e40877a1 to your computer and use it in GitHub Desktop.
Save whoacowboy/ba5e9e767af9e40877a1 to your computer and use it in GitHub Desktop.
Daz3D script for getting the properties and methods of the global objects.
// DAZ Studio version 4.7.0.12 filetype DAZ Script
function propsAndMethods(obj) {
var classInfo = obj.name + " (" + obj.className() + ")";
var seperator = "";
for (var i = 0; i < classInfo.length; i++){
seperator += '_';
}
print(seperator);
print(classInfo);
print(seperator);
var properties = new RegExp("([a-zA-Z0-9]+(\\(.*?\\))?),", "g");
var arr = Object.getOwnPropertyNames(obj).sort();
for (item in arr){
print(arr[item].toString().replace(properties, "$1\n"));
}
}
propsAndMethods(App);
propsAndMethods(Scene);
propsAndMethods(ColorDialog);
propsAndMethods(FileDialog);
propsAndMethods(Geometry);
propsAndMethods(MainWindow);
propsAndMethods(MessageBox);
propsAndMethods(OpenGL);
propsAndMethods(System);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment