I've been trying without success to generate a script that allows me to have, using one single Profile, two different values of Tool Change Retraction, one for each extruder.
I am using a single X carriage, with two independent direct drive extruders. E1 with with PVA, E2 with ninjaflex to print one single part (stl) with soluble support.
The thing is that if i set Tool Change Retraction to 10mm, ninjaflex will be perfect and not ooze at all, but PVA will jam the extruder as it does not like to retract so much - also, retraction speeds over 20 mm/s for PVA easily results in the hobbed gear to grind the material. (independent Tool Change Retraction Speed would be a bonus, but not essential)
If i set Tool Change Retraction to 2mm, it's perfect por the PVA but the ninjaflex oozes like cracy :/
So my thought is: in the profile, "standard" Tool Chang Retraction distance is set to 2mm, and then, add extra retraction to E2 ( 8 extra mm) after his layer ends, and then add 8 extra mm of extrusion to compensate the previous retraction - this way E2 would retract and extrude 10 mm.
I was trying to add this to the Retraction Script field, but it ended up retracting in E1 also, and extruding in E1..kind of a mess. I tried several combinations but none worked out; still it was something like this:
{IF NEWTOOL=1}T1
{IF NEWTOOL=1}G1 E-8 F3600 ; retract extra 8mm beyond the 2mm of Tool Change Retraction
{IF OLDTOOL=1}T1
{IF OLDTOOL=1}G1 E8 F3600 ; to extrude the same extra retracted amount
I'm not savant in coding so i'll probably need a drawing in case anyone gently cares to help, hehe.
Tks in advance