I would like to add a variable AC current-limiting circuit to the output of my Variac to use when testing circuits so that I can limit the maximum AC input current in case of shorts or other issues.
Even low cost, variable DC power supplies typically have a separate knob for adjusting the maximum DC current output -- I would like to create the same thing for the AC Variac output.
I know that in the past people have used a combination of incandescent light bulbs of various wattages to create current limiters with a discrete number of steps. However, such contraptions are big, fragile (bulbs break), and hard to source now that incandescent bulbs are being phase out.
So, is there an all-electronic circuit that could sense and limit the current output to a variable value based on say a potentiometer. Ideally current would be clamped but I could also tolerate current being shut off.
Any suggestions?

Couldn't I even make a nicely selectable one using a rotary switch connected to an array of different values?
Indeed on Aliexpress, it seems like I can get an assortment kit for pretty cheap and have a large range...
– JK1 Mar 31 '23 at 21:37