Hi. I am 3d printer and Im using slicer. The problem with slicer is that it keeps hotend all the time on object so it cant cool down.

Then on options I found "layer change g code" and an idea came to my mind. Is it possible to make g code that detects how much time next or previous layer used, if it used less time than 30 sec hotend would move away to make whole layer take 30 sec and then come back?

Right now I can only affect on minium layer time and speed, this however wont help be because now matter how low speed I set the hotend remains close to object and prevents it cooling.