Adding a pause to a specific part of the gcode

So I want to add in pauses in my gcode where the support interface is about to start, and when it ends, I think it happens twice within this gcode but I can’t find it because I don’t know gcode. I would love it if someone could help me out. The gcode is also too big to paste here, but I can provide the 3mf file for it.
Toothless_iPhone_13_Pro_Case_V3 (2).3mf (1.3 MB)

1 Like

You don’t need to know gcode to insert a pause. You can do it in Bambu studio.

But that is a pause between layers, this is a pause during a layer to change the filament. If I did a layer pause, it would cause PLA to be printed where I need TPU, and I just need the PLA on the support interface

To put pauses inbetween actions WITHIN a layer, you will need to edit the gcode text file.

Research first in the slicer preview.
**


**

  1. Move the layer slider to the layer in question
  2. Move the timeline slider to the beginning of the first action you want to find
  3. Make a note of the LINE NUMBER in the gcode preview.
    Repeat 2+3

Get out your text editor (recommend: notepad++, enable line numbers)

Now that you know where the pauses need to be placed, you need to find the right pause command for your printer model/language. Probably M400 U1

Add those lines, save to SD/USB, walk it to your printer and go get it

2 Likes

The latest version of Bambu Studio supports manual filament change without an AMS.

External Spool Support Without AMS

You can now use multiple filaments on a single external spool slot, even without an AMS unit, thanks to new support for manual filament changes during a print. This is especially useful for multi-color or multi-material prints when AMS is not available.
How It Works:

  • In the Print Job dialog, select the new option to enable external spool swapping (requires compatible firmware).
  • During the print, the printer will pause and prompt you when it’s time to switch filaments.
  • You can then manually change the spool and continue printing.

That hasn’t hit the A1 series yet, so I will have to edit the gcode.

1 Like

I use Bambu Studio and the 3mf file doesn’t seem to like Orca Slicer so I can’t see the gcode on the side, and this was a file given to me by someone helping me with the model.

In Bambu Studio, use the bottom scroll bar to preview the gcode for the layer you are on. You can also use the left and right arrow keys to move the bar.

GIF 2025-08-25 4-22-50 PM

1 Like

Bambu studio hides that box until you start derping with the timeline (#2) slider.

Orca leaves it up to pollute your UI till you turn it off in prefs. 6 of 1, half dozen of another :wink:

Ahh I see, then it’s just figuring out the right thing to insert into the gcode to get the printer to pause as if it were a user prompted pause

I believe it is the M400 U1 command so I’m going with that

1 Like

Turns out that just using the gcode file from within the zip folder after you rename the 3mf, is NOT the way to go. bummed I wasn’t near my printer to see it so it went all the way to the pause, was a stringy mess.

I edited the gcode, turned the zip back into a 3mf, and now it seems to be muuuch better.

Annd I lied it was still really bad, guess doing this will NOT be viable.

You’re probably losing the correct folder structure when you “Rezip” the file.

Try using this process.

1 Like

I see, I’ll try this later today and hope for the best.

It actually didn’t seem to work, unless I somehow screwed it up but it actually shifted where one of the pauses was meant to be.

Yeah I even redid it and this did not work at all so I think the method is no longer viable.

The method is still viable.

If you need an example of inserting a pause mid layer check out the manual bed leveling gcode provided by Bambu.

Are you inserting the M400 U1 on it’s own line?