Freemix scripts not working with 4.2 (4204)

Adopt Background and Make Backup Layer from Freemix stopped working with the update to 4.2 (4204)

Actually doesn’t work anymore with the stable version either 4.2 (4202)

But it still works in 3.4.1 (3436)

You already pointed this out:

It worked for a while after my previous post

Yes, the script resets to the old code and deletes your edits. It’s very annoying.

Maybe @TimAhrens could update the imports, so the scripts work in G4?

Oh I see why you pointed to my previous post
thanks for insisting :slight_smile:

@TimAhrens I opened a pull request that adds the explicit imports for G4 compatibility:

There’s also a pull request addressing Expand Kerning (#60).

Could you please merge at least #61, so that these scripts can finally work in G4? Thanks!

2 Likes

@sebsan Tim just merged this pull request, so you should see the update in Glyphs 4 soon. Restart Glyphs, you might have to click “Reload Scripts” (hold Option to make this appear).

Awesome, thanks!

@SCarewe I trust you did some basic testing to check whether your changes break anything?

Concerning which part? The imports and the erroneous dictionary building? Yes, using pyflakes.
Expand Kerning: Yes, I tested the new logic in Glyphs 3 and Glyphs 4.

For example, simply running the script once in a real-world scenario would be a very simple, minimum test that could reveal certain errors.

That’s what I did. Did you do the same and get errors?

No, I didn’t get any errors.

(post deleted by author)