@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?