Template Custom G-code: What is it for, and how do I use it?
 
Notifications
Clear all

Template Custom G-code: What is it for, and how do I use it?  

  RSS
Jan Tuts
(@jan-tuts)
Active Member
Template Custom G-code: What is it for, and how do I use it?

I'm finally dabbling a bit into custom g-code for the first time, and I can't for the life of me seem to find any information on what the "Template Custom G-code" field is used for at the bottom of PrusaSlicer (2.5.0) > Printer Settings > Custom G-code.

I even resorted to using Bing in my search!
And even then I basically only found one Reddit post at r/prusa3d of someone asking the same question, with no replies...

So, "Template Custom G-code": What is it for, and how do I use it?
Thanks!

Posted : 04/02/2023 9:20 am
You liked
Neophyl
(@neophyl)
Illustrious Member
RE: Template Custom G-code: What is it for, and how do I use it?

When you slice a model and it changes to the slice preview you have the layer slicer on the right.  That slider has a little + icon next to it.  That is where you normally add a colour change at a specific layer.  However instead of clicking the + icon you can right click it instead. 
This allows you to Add colour change, Add Pause or Add custom gcode.  The custom gcode added is taken from the Printer Settings>Custom Gcode>Template Custom G-code field.  Just like the colour change option is taken from the colour change field and the pause Print is taken from , you guessed it the Pause Print field. 

Of course when inserting you can modify or type in whatever you want when custom gcode is selected but the template field is there for those that commonly insert the same thing all the time.

While the options are called Colour change or Pause print for the other 2 they are just adding in the gcode from the appropriate printer settings field so you can alter those to contain whatever you want too if you didnt want Pause for example.

Posted : 04/02/2023 11:41 am
You liked
FoxRun3D
(@foxrun3d)
Famed Member
RE: Template Custom G-code: What is it for, and how do I use it?

Well, I just learned something new today. Never had a need for this function but good to know what it does.

Formerly known on this forum as @fuchsr -- until all hell broke loose with the forum software...

Posted : 04/02/2023 1:39 pm
You liked
Jan Tuts
(@jan-tuts)
Active Member
Topic starter answered:
RE: Template Custom G-code: What is it for, and how do I use it?

Sorry for my very slow response, while yours was so quick!
Thank you very much for clarifying, and also thank you for the tip of using "Color Change" and "Pause Print" as 2 additional custom templates. 🙂

Posted : 15/02/2023 10:23 pm
Share: