How to program in a pause to a print

What is the problem?

I would like to be able to pause a print as it transitions to a specific z height so I can put nuts or other things into the print then have it continue the print when I click resume. That way I dont have to manually pause the print at just the right second. Is there some plugin i can add to add this functionality, I searched but couldnt find one.


What did you already try to solve it?


Complete Logs

octoprint.log, serial.log or output on terminal tab at a minimum, browser error console if UI issue ... no logs, no support! Not log excerpts, complete logs.)


Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible


It kind of depends on the firmware. For example you could do it with action commands, if your firmware supports those.

And if you're running Prusa firmware you've got the M601 command.

Oh, and you would use those commands in your slicer with any variety of "at z-height" script/setting to actually do the work.

It's not a bad plugin idea though, a "pause at z-height" would be an interesting utility. Not sure how well you could get it to work having to deal with z heights above current layer because of z-hop settings, etc.