Dynamic Retraction length based on travel length ...

Dynamic Retraction length based on travel length … is that even possible ? Or just go with the highest retraction length for the longest travel possible to avoid oozing ?
I usually have a 1mm retraction for a direct drive, and that’s plenty for standard prints. But now I am printing something like a hollow inverted pyramid frame, and the further the legs apart, the more oozing is observed…

S3D had it as an experimental feature but I think it was taken out. What you do is tune retraction for as big of a part as you expect to make on your machine and it will work on everything smaller.