var lib = scene.library; if (lib) { shell.print("There are " + lib.resourceCount + " resources in this library."); }