function onSample() { var rootBox = scene.rootBox; if (rootBox) { shell.print("Root box ID = " + rootBox.id); } }