property rootBox

(r/o) box rootBox;

Typ

Zugriff

This property returns the scene's root box. If no rootBox is available an error is returned. See the box class documentation for more information.
function onSample()
{
    var rootBox = scene.rootBox;
    if (rootBox)
    {
        shell.print("Root box ID = " + rootBox.id);
    }
}