How to do it?
I usually print from SD card so default Z-based time lapse is not possible.
I can, however, generate G-code and config firmware (Smoothieboard) to output GPIO signal at specific point to trigger camera.
My printer is a tool changer which each tool is at different height so a time-based time lapse results in print vibrating up and down (Z bed).
Pi 3B+ and Pi camera. Found no good solution yet.