I'm using a post-processing script to do something similar, but the user has to set the value at the top of the custom g-code. For example... G-code: ;define placeholder values here ;>>=1000 ;use a placeholder anywhere after its definition G4 P Post-processing (JavaScript using the Windows Script Host): @if (@CodeSection == @Batch) @then @cscript //Nologo //E:jscript "%~f0" %* &by wizard04 - Slic3r