default ZoomHandler.js Plugin Size in DAW
-
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
-
@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.
-
@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);