Hi, JJMack,
Thank you for the solution. Now my problem is how to create a selection for a specific layer. It is possible to select a layer by clicking the layer in the "Layers" window, but that will not automatically set the selection to the box of the layer. If I make the selection manually, then that is not accurate.