Dust formation around AGB and SAGB stars: a trend with metallicity?