I was so tempted to reply with a single word:
YES
but i fear you would be no much satisfied
Anyway for sure is possible modify to preserve the layers and should be even not too hard ...except that may be hard for me...
Wait a lateral thought striked checking now !
it works if you don't mind 1px border (that may be removed by a trivial edit to the script
Open Gmic go to sequence menu/Polaroid
In both "Starting " and "Ending parameters"
Set "Frame Size" and "Bottom size" to 1
"angle" "x-shadow" and "y-shadow all to 0
"Frames" in this case would control the number of the layers
If you don't want the 1px border i suppose the little hack below will solveMind that use a similar filter to step resize is a overkill, as use a Nuke to kill a mosquito...anyway as the Nucluar blast will kill the mosquito the script should allow what you asked
But was a 1 minute hack, i didn't test but should work, i slightly change Name and function name of the script to avoid conflict or the script be overwritten by update
################################################
#@gimp PolaroiD : gimp_animate_polaroidd, gimp_animate_polaroidd_preview(1)
#@gimp : Frames = _int(10,2,100)
#@gimp : Output frames = _bool(1)
#@gimp : Output files = _bool(0)
#@gimp : Output folder = _folder()
#@gimp : note = note{"\n<b>Starting parameters :</b>"}
#@gimp : Frame size = int(10,0,400)
#@gimp : Bottom size = int(20,0,400)
#@gimp : X-shadow = float(0,-20,20)
#@gimp : Y-shadow = float(0,-20,20)
#@gimp : Smoothness = float(3,0,5)
#@gimp : Angle = float(0,-180,180)
#@gimp : Zoom = float(1,0.01,1)
#@gimp : note = note{"\n<b>Ending parameters :</b>"}
#@gimp : Frame size = int(10,0,400)
#@gimp : Bottom size = int(20,0,400)
#@gimp : X-shadow = float(0,-20,20)
#@gimp : Y-shadow = float(0,-20,20)
#@gimp : Smoothness = float(3,0,5)
#@gimp : Angle = float(20,-180,180)
#@gimp : Zoom = float(1,0.01,1)
#@gimp : sep = separator(), note = note("<small>Author : <i>David Tschumperlé</i>. Latest update : <i>2010/12/29</i>.</small>")
gimp_animate_polaroidd :
-if $3 filename="$4/gmic_polaroid.png" -else filename="" -endif
-animate gimp_polaroid,"${5-11}",\
"${12-18}",$1,$2,$filename
-r @{-max_whds},0,0,0.5,0.5
gimp_animate_polaroidd_preview :
-gimp_animate_preview gimp_polaroid,"${5-11}",\
"${12-18}",0
################################################