Create new layer under the current layer

Hi

@Grum999 gave this script for creating a layer below the current layer but it seems to fail regularly when run on a layer inside a group (like when the current layer is the bottom group layer). Does anyone have a script that can create a layer that is below the current layer?

Continuing the discussion from Is it possible to create new layer under the current layer instead of on top of current layer?:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.