I am trying to use the ML's focus stacking feature (along with full resolution silent picture, FRSP) to automate photogrammetry (making 3D models from lots of photos of the object from different angles) for small objects (where the DoF is too narrow, and one has to use focus stacking for each angle of the camera). This is operated by my own 3D Scanner gadget based on Arduino:
https://pulsar124.wikia.com/wiki/3D_ScannerThe official code for the 3D Scanner only supports continuous shooting mode (the platform with the object continuously rotates, while camera is taking pictures with the flash used to freeze the motion). I recently modified the code, and now it can be used in a non-continuous fashion: it turn the platform a bit, then stops, and half-presses the camera's shutter button to do the shot, then it tuns again and so on.
This works fine with regular shooting (with no focus stacking). It would also work with focus stacking - if only I could figure out how to trigger ML's focus stacking from my Arduino gadget. Right now the gadget can operate half-press (AF pin) and full press (shutter pin), via opto-couplers.
Now I am stuck. I already discovered that focus stacking works great with FRSP. (One twist was that I had to set Step Wait to "off" in Focus Settings to make it work.) But I can't figure out how to trigger focus stacking from Arduino. The stacking can be triggered with the Set, Play, and Left Arrow buttons, but none of them can be controlled remotely. If I half-press the shutter button while the cursor is pointing at the Run Focus Stack option, the camera takes the regular FSRP photo, no focus stacking happens.
Is there a trick or special setting (either in ML, or camera's menu) I can use to enable remote triggering of focus stacking? If not, perhaps there is an easy ML code fix to make this happen? (For example, when the cursor is pointing at the Run Focus Stack option, Half-Press button is reassigned from triggering FRSP to starting a focus stack.) Or may be a simple Lua script can do this?
BTW my camera is Canon 6D mk1. I am using the latest stable ML version (from July of this year).
Thanks for any advise!