SOLVED "Synchronizing Multiple Space Centers" script errors
-
This script is failing in RoboFont (
Version 4.1 (build 2111241049)
):https://robofont.com/documentation/how-tos/mojo/space-center/#synchronizing-multiple-space-centers
It will crash if I try to run it, then open two fonts and open their space centers.
If I am careful to open the fonts and their space centers first, I can get this traceback:
Traceback (most recent call last): File "synchronizeSpaceCenters.py", line 81, in <module> File "/Applications/RoboFontBeta.app/Contents/Resources/lib/python3.7/mojo/subscriber.py", line 3791, in registerSpaceCenterSubscriber File "/Applications/RoboFontBeta.app/Contents/Resources/lib/python3.7/mojo/subscriber.py", line 3636, in addSpaceCenterSubscriber File "/Applications/RoboFontBeta.app/Contents/Resources/lib/python3.7/mojo/subscriber.py", line 3678, in _startSpaceCenterInstance File "synchronizeSpaceCenters.py", line 19, in spaceCenterDidOpen File "/Applications/RoboFontBeta.app/Contents/Resources/lib/python3.7/vanilla/vanillaGroup.py", line 127, in __setattr__ File "/Applications/RoboFontBeta.app/Contents/Resources/lib/python3.7/vanilla/vanillaBase.py", line 56, in __setattr__ File "/Applications/RoboFontBeta.app/Contents/Resources/lib/python3.7/vanilla/vanillaBase.py", line 374, in _setAttr AssertionError: can't replace vanilla attribute
I’ve tinkered with it a bit, but I’m not quite sure how to fix this.
-
@ArrowType Whaoh I came to post this issue too!
-
Awesome, thanks Roberto!
The workaround seems to work (at least on my first try)!
Thanks for looking into this and making it work. :)
-
Congratulation! You found a bug :)
Or, to put it better, an edge case that will require a small new piece of API. Here you'll now find a workaround working with the latest stable release 4.1
https://robofont.com/documentation/how-tos/mojo/space-center/#synchronizing-multiple-space-centersHere instead the same script with the new API that will be available with the public release of 4.2
https://robofont.com/RF4.2/documentation/how-tos/mojo/space-center/#synchronizing-multiple-space-centersThe original script triggered a circular motion of events raising a RecursionError in Python that crashed the entire app. Now, it should work fine.
Let us know!
-
Awesome, thanks Roberto!
-
👋
I can reproduce the issue, we will let you know soon about it!