'Switch to the layout with the given index in self.layouts.
Parameters
index :
Index of the layout in the list of layouts.
group :
Group name. If not specified, the current group is assumed.'

def cmd_to_layout_index(self, index, group=None):

    if group:
        group = self.groupMap.get(group)
    else:
        group = self.currentGroup
    group.toLayoutIndex(index)
