Rename Glyphs on a Variable Font

Hello, I was able to use this script for a variable font
{
customParameters = (
{
name = “Rename Glyphs”;
value = (
“_serif=_serif.ss01”
);
}
);
}

but suddenly what I export looks a mess and the script is not working.

Any idea how to fix this?

You can’t switch glyphs in a variable font. Take a look at the Switching Shapes tutorial.

I just tried this and it does work for me.
Is the “_serif” a glyph you use as component to build serifs? What exactly are you trying to do?