Perhaps there is another way to make "End G-Code" conditional as found in
https://community.ultimaker.com/topic/21314-possible-to-make-dynamic-gcode-in-cura/
The idea is to define value property in (.def.json) and embed Python expression to be evaluated like in the following example:
"machine_end_gcode": { "value": "'G29 P' + str(int(machine_width/25))" },
So in my case, I could pass proper X,Y offset to G1 based on {current_extruder} property.
I think it should work...
Recommended Posts
UticaTechClub 0
To fix my problem, one of two things needs to happen:
a) Figure out if Cura could invoke "Extruder End G-Code" on the last used extruder. I am sure there is a good reason(s) as to why Cura doesn't do it.
b) Figure out how to condition gcode invoked in "End G-Code" section. After much reading, I believe this is currently not possible in Cura.
Link to post
Share on other sites