Extension stopped working after upgrade to 4.4



  • Hello,

    please, I have this extension that started to throw an error after upgrade to 4.4

    https://github.com/jansindl3r/Scale-absolutely

    and it gives this error

    Observer '<__main__.ScaleAbsolutely object at 0x7fc189977b80>' with 'inspectorWindowWillShowDescriptions' failed: 'view'
    Traceback (most recent call last):
      File "lib/doodleDelegate.pyc", line 570, in openInspector_
    AttributeError: 'DoodleAppDelegate' object has no attribute '_inspectorWindow'
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "lib/eventTools/eventManager.pyc", line 165, in callObserver_withMethod_forEvent_withInfo_
      File "scaleAbsolutely.py", line 228, in inspectorWindowWillShowDescriptions
    KeyError: 'view'
    

    The function that it's referring to looks like this

    def inspectorWindowWillShowDescriptions(self, notification) -> None:
            """
            sets the new checkbox and moves the other a bit away
            """
            for subMenu in notification["descriptions"]:
                if subMenu["label"] == "Transform":
                    view = subMenu["view"] # <<< here
                    break
            if view:
                self.view = view
                self.additionToGUI_set()
                self.shiftOtherGUI()
                self.additionToGUI_scale()
                self.shiftOtherGUI()
    
                subMenu["size"] += self.lineGap * 2
    

    it's assigned to a event

            addObserver(
                self,
                "inspectorWindowWillShowDescriptions",
                "inspectorWindowWillShowDescriptions",
            )
    

    Please, could you hint me how to get the view, please? I went through the roboFont files but I am lost. What this function does is it adds this additional inputs to the default transform UI, so it can look like this:

    Screenshot 2024-04-29 at 18.03.00.png

    Any hint will be greatly appreciated!!!


  • admin

    Hi Jan,

    this forum is almost abandoned, I would like to invite you to the open discord group for all your RoboFont related questions!

    --> https://discord.gg/M8RySPYE


Log in to reply