How to assign a value to a node? Or: Error: expected '='
-
How can I reset my extrusion factor via a macro (prior to the print start)?
My macro looks as follows:
if move.extruders[0].factor != 1 set move.extruders[0].factor = 1
i usually get the following error:
Error: expected '=' in line 2 of Reset Speed and extrusion factor.txt
I already experimented with braces and different order - but i didnt get it to work.
Thank you in advance!
-
@DavidG_68kg_PLA You cannot write to the object model directly using
set
, it only supports local or global variables. UseM221 D0 S100
orM221 D0 S{myFactor * 100}
to set the extrusion factor. -
@chrishamm thanks, chris!
-
-