Can I use {if notes=xxxx} for adding custom end G-Code?
 
Notifications
Clear all

Can I use {if notes=xxxx} for adding custom end G-Code?  

  RSS
davorin
(@davorin)
Trusted Member
Can I use {if notes=xxxx} for adding custom end G-Code?

Good afternoon (o;

 

I just love the scripting feature of Prusa slicer....although S3D has something similar, it isn't that feature rich nor is it documented (o;

When I hover over with the mouse I can see the variable names for each setting....does that mean I can use them all for generating custom G-Code?

 

Like when I want to move the bed down and activate bed cooling, would this work?

 

{if notes=GLASSBED}
G0 Z400 F175
M106 P1 S255
M190 R35
M106 P1 S0
{endif}

 

Ender-5 Plus

with Micro Swiss Direct Drive, BTT SKR v1.3 and TMC2208<br>Ender-3 with Micro Swiss Direct Drive, E3 mini with TMC2208<br>Qidi i-Mate S

Posted : 24/07/2021 11:55 am
towlerg
(@towlerg)
Noble Member
Notes as a placeholder

There is a list of placeholders in the Prusaslicer docs. Looks like you can https://help.prusa3d.com/en/article/list-of-placeholders_205643/

Posted : 24/07/2021 3:40 pm
bobstro
(@bobstro)
Illustrious Member
Yes, you can do this with conditionals in PrusaSlicer

Yes, you can do this. You'll see this used frequently in PrusaSlicer preset dependencies.

I've got some notes on custom gcode starting here that might be helpful.

My notes and disclaimers on 3D printing

and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan

Posted : 24/07/2021 3:55 pm
Share: