method addCommandGroup

commandGroup addCommandGroup(string id);

Argumente

Zurückgegebener Wert

This method returns a commandGroup object created for the given ID, or null if scene failed to create the object.
function onSample()
{
    var commandGroup = scene.addCommandGroup("myNewCmdGrp");
    if (commandGroup)
    {
        //add new command to the new command group
        commandGroup.addCommand("myNewCmdId", "myNameCmdAction();");
    }
}