The problem is:
There are 100 deep stacks (each 270images). 10 Stacks in a row are shot from the exact same positions, the only thing that changed is the direction of the light, so they do not vary in Shift x, Shift y, Rotation or Magnification.
Is there a way to easily make the first stack, save the resulting staked image together with the alignment info for each frame of the stack, then use these alignments for the next 9 stacks (with just different lighting), then make a new alignment for the 11th stack and use this one for the next 9 stacks and so on.
I need to average the stacks with same position but just varying lighting situation and do this for hundreds to thousands of stacks. That is why it would be nice if such a task would be possible via command line.
Currently with batch process and aligning each stack, the resulting stacked images would not perfectly register on each other as seen on the example.

Here you see 6 images that definitely have the same positions, just other lighting, but the results do not register at all (please see red frame and x mark on one of the lights for relative changes to first stack/light).
Would be very nice if there would be an easy solution.
Best regards,
Michael