HISE Logo Forum
    • Categories
    • Register
    • Login

    default ZoomHandler.js Plugin Size in DAW

    Scheduled Pinned Locked Moved General Questions
    3 Posts 3 Posters 183 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      treynterrio
      last edited by

      Hi there, I use the ZoomHandler.js in my plugin MIN is 0.50 and MAX is 2.0. How can I set it so that the default size is 0.75 when first opened in the DAW? Thanks

      orangeO Oli UllmannO 2 Replies Last reply Reply Quote 0
      • orangeO
        orange @treynterrio
        last edited by

        @treynterrio There is a General Settings.xml file in the appData folder used by the Exported Plugin. After manually setting the SCALE FACTOR 0.75 there, you need to have the plugin installer create this file.

        As it seems, it is a difficult task, my suggestion to you is to set the look you are aiming for while the scale factor is 1.

        develop Branch / XCode 13.1
        macOS Monterey / M1 Max

        1 Reply Last reply Reply Quote 2
        • Oli UllmannO
          Oli Ullmann @treynterrio
          last edited by Oli Ullmann

          @treynterrio When starting the plug-in, I check whether the GeneralSettings file exists. If not, I automatically set the scale factor to 75%. Works on the Mac. I have not yet tested whether it works on Windows. There is also the option of querying the user's display size.

          const appData = FileSystem.getFolder(FileSystem.AppData);
          const settingsFile = appData.getChildFile("GeneralSettings.xml");
          
          if(settingsFile.isFile())
          Console.print("General Settings exist");
          else
          Settings.setZoomLevel(0.75);
          
          1 Reply Last reply Reply Quote 1
          • First post
            Last post

          11

          Online

          1.8k

          Users

          11.9k

          Topics

          103.9k

          Posts