I am using BL / Orca for generating gcode for a custom IDEX printer.
I am not good (useless) at writing scripts so I have spent several hours searching & trying various iterations of scripts found on this & other forums, but have not found/made a working solution.
I thought it would be “simple”… apparently not.
Typically, I would like to take a line or two of g-code like:
M106 P0 S15 ; Set fan speed
M109 S245 T0 ; set nozzle temperature and wait for it to be reached
And replace it with:
; M106 P0 S15 ; Set fan speed
; M109 S245 T0 ; set nozzle temperature and wait for it to be reached
Ideally, a template file in Python or PowerShell that has a variable field for the “Search” & another for the “Replace” at the top.
For clarity, I need a script(s) that I can place in the “Post Processing Scripts” field/box in Orca.
Anybody up for it… happy to pay for the coffee drunk while doing it