Page 1 of 1

Bug - 2.1.0 - Variables in custom gcode are not replaced

Posted: Mon Apr 14, 2014 6:40 pm
by crispy1
Expected behavior:
Variables used in custom gcode in the scripts tab should be replaced with the appropriate value. For example:

Code: Select all

M140 S[bed_temperature]
Should become:

Code: Select all

M140 S45
Actual behavior:
Variables are not substituted and are left in the generated gcode file. This results in the heaters not being set to the correct temperatures.

Variables worked fine in the previous version, this issue is new to 2.1.0.
Did the variable names change?

Separately, would it be possible to get a complete list of all variables Simplify will recognize in custom gcode?

Re: Bug - 2.1.0 - Variables in custom gcode are not replaced

Posted: Tue Apr 15, 2014 8:21 am
by crispy1
Kind of fixed. Variables need to be renamed as follows:

Code: Select all

[bed_temperature] => [bed#_temperature]
[primary_extruder_temperature] => [extruder#_temperature]
Where # is the toolhead number in the temperature tab of the FFF settings.

Not sure about other variables since those are the only 2 I am using.