Last active
November 6, 2022 23:51
-
-
Save whoacowboy/ba5e9e767af9e40877a1 to your computer and use it in GitHub Desktop.
Daz3D script for getting the properties and methods of the global objects.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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