function onWalkLibrary() { var library = scene.library; if (library) { shell.print("Number of resources = " + library.resourceCount); var res = library.firstResource; while (res) { shell.print("Resource tag = " + res.tag); res = library.nextResource; } } }