Maybe it is possible to add the keep_layer argument to the DO function. I use this function in my script. If I use it without the keep_layer argument (it's used False by default) then a new mask layer is created always. My mask layer is in the theme and it turns off because a new mask layer is created with a new layer id.
Maybe it is possible to add the keep_layer argument to the DO function. I use this function in my script. If I use it without the keep_layer argument (it's used False by default) then a new mask layer is created always. My mask layer is in the theme and it turns off because a new mask layer is created with a new layer id.