This function activates the next layer and adds it to the selected layers (see chapter 4.7). This function can be used in actions to mark and group layers.