function onSample() { var commandGroup = scene.getCommandGroupById("myCmdGrp"); if (commandGroup) { commandGroup.id = "myNewCmdGrp"; } }