eukatree / Bambu_CustomGCode

Custom g-code for Bambu Studio
GNU General Public License v3.0
95 stars 17 forks source link

Parsing error at line 2: Not a variable name {if toolchange_count > 1} #4

Closed ttmms closed 10 months ago

ttmms commented 10 months ago

Getting this with latest orcaslicer, please help

Failed to generate G-code for invalid custom G-code.
layer_change_gcode Parsing error at line 2: Not a variable name
{if toolchange_count > 1}
    ^
Please check the custom G-code or use the default custom G-code.
eukatree commented 10 months ago

Check to make sure you put this code in filament change section. This error looks like you tried to put it in the layer change section.

ttmms commented 10 months ago

You are a genius and/or I am an idiot! Thank you!