Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.