method getSceneByName

scene getSceneByName(string name);

Argumente

Zurückgegebener Wert

This method returns a scene with the given name. If no scene is found NULL is returned. If more than one scene has the same name, the first scene that was opened is returned. See the scene class documentation for more information.
function onSample()
{
    var myScene = shell.getSceneByName("myScene");
    if (myScene)
    {
        shell.print(myScene.url);
    }
}