@devleon
I use the "Filament Density" g/cm³ field to enter a value as the standby temperature per filament type as I am used to it from my earlier printer with two separate tools/heaters/nozzles and I use it now as the initial temperature to soften the filament at the nozzle for probing Z with a precision piezo.
The main usage of my script it to track the tool set at the start of the print and if it is missing set it to my default one.
Using Slic3r Prusa Edition 1.41.2 the gcode doesn't contain the starting tool in all cases so I fixed via the script, it also translates the fan gcode to work with my settings.
You can get the script here and check if it is useful for you: https://drive.google.com/drive/folders/1uOl2hUzCcJHYZljG15EenpiywwpBvULu
This are my "Start G-code" settings for using the density as standby temp:
;slic3r start g-code
;my_default_tool=[perimeter_extruder]
;my_part_fan=P0
M115 U3.1.0 ; tell printer latest fw version
M83 ; extruder relative mode
;
T-1 P0 ; deselect all tools
G10 P0 S0 R0 ; clear settings of tool 0, rear extruder
G10 P1 S0 R0 ; clear settings of tool 1, front extruder
;
;G29 S1; load last heightmap ; not needed atm as my bed is flat enough
;
M140 S[first_layer_bed_temperature_0] ; set bed temp
G10 P0 S[first_layer_temperature_0] R[filament_density_0] ; set standby temp to filament density
G10 P1 S[first_layer_temperature_1] R[filament_density_1] ; set standby temp to filament density
T0 P0; select tool for heating, do not run tool macros
T1 P0; select tool for heating, do not run tool macros
T99 P0; select dummy tool to set the previous tool to standby temp
;
G28 ; home
;
M190 S[first_layer_bed_temperature_0] ; wait for bed temp
M116 ; wait for all temps to reach
G28 Z ; home Z again because of bed heating/filament at nozzle
;
;
;my_startgcode_end