seventhwhiskey
Posts: 2
Joined: Tue Apr 18, 2023 11:42 am

Script to check if tool is used in print

I have a dual-nozzle setup with a starting script that primes each tool and wipes the nozzle. Even in prints that only use one tool, I leave the inactive tool at print temps with the filament out of the melt zone to reduce collisions.

I want the prime&wipe script to run only for nozzles that are used in the print. If T1 is used for features but T0 is not, then only T1 would prime and wipe.

Is there a script variable that can help do this? I think I would need to check if T0 was used for any feature (infill, raft, outline, support, etc).

If no suitable script variable exists, is there another way to do this? Modifying the script for every print is not a good option.
S3D-Jason
Posts: 1608
Joined: Sun May 31, 2015 6:01 am

Re: Script to check if tool is used in print

You can use the "Assign settings to categories" option to assign the Starting Script to the auto-configure extruder category. That way when you change between T0, T1, or both in the top it will load the correct starting script. Then you can fully customize the starting script for single or dual extrusion and it will pick the right one based on what more you are using.

Return to “General Discussion and Tips”