getZoomLevel to change GUI size onInit?
-
@ustk said in getZoomLevel to change GUI size onInit?:
The UI zoom factor you have set in the customSettings before exporting is recalled when plugins load if I remember well...
Unfortunately not the case. I just did a quick test and exported with 50% and it loads up in Ableton at 100%.
Basically I need it because 2 of the projects I started right at the beginning of my hise mission months ago before I knew any better, I made the interface's way too big for 13" macbook screens.
In the studio my main setup is usually a 28 inch tv, 2 x 22" monitors, and my 15" macbook pro... so when I was building the interface's on the bigger screens I didn't know that it would be a problem down the line for smaller screens.
To go back and resize full projects now would be a huge pain so I was hoping to just be able to have the default size set to 75% zoom on those ones.
-
@SteveRiggs Strange it might with standalone app, or not, I don't remember
I understand because I've made the same mistake so I have a plugin to re-shape entirely as well
Working on 27" monitor might be comfortable but beware of the size... -
@ustk said in getZoomLevel to change GUI size onInit?:
I have a plugin to re-shape entirely as well
It looks like we have some fun tasks to come then lol.
At the moment I've just opted for a button in the top left corner of the plugins which opens up the custom zoom settings so if someone has a smaller screen and it loads to big, they can still access the button. It works but it's not ideal. It would be much better to have it load up at a smaller size. It'd save a hell of a lot of tedious work fixing my noob mistakes
-
Tip :
Always Place The Scale Settings In The Top Left Hand Side Of GUI, To Avoid Further Problems For Your End Users.
The Reason Is Becuase, Resizing The GUI To Over 200 Will Hide The Settings If They Are Located In Right Top Or Bottom. -
@Natanr: ^^^^^ ;)
-
@SteveRiggs Haha I Guess I Skipped Reading Your Reply
Looks Like Same Exprience Happend At Both Sides -
@Natanr Haha All good mate. Keep the tips coming
-
The scale factor is being stored in a
GeneralSettings.xml
file so if you had this before, it will restore it to the value.However it's trivial to set another default value than 100%, I just need to make this a preprocessor macro which you can set in your projects settings.
-
@Christoph-Hart That would be awesome. Cheers!
I just did a quick search for the GeneralSettings .xml but can't see it anywhere. Is it editable and can be changed per project? That would work for now if so. It'd save a lot of work
-
@SteveRiggs That file is created in the app data folder when the user runs the plugin/standalone for the first time.
-
@d-healey So it its!! Thanks.
If I edit the size to 0.75 in there, will it change every project to 75% when it exports? I can live with that if it does.
I'd rather have them load up slightly smaller than taking over the whole screen
-
@SteveRiggs ...or maybe it could be changed before each export just for specific projects
-
@SteveRiggs said in getZoomLevel to change GUI size onInit?:
@SteveRiggs ...or maybe it could be changed before each export just for specific projects
Yeah, that's what Christoph said he will add.
I just need to make this a preprocessor macro which you can set in your projects settings.
-
@d-healey Cool. I was just wondering if I could edit it in there for now until it's added into the project settings
-
@SteveRiggs You could but that only affects your copy, it won't help your users when they install it.
-
@d-healey Ahhh I see. Cheers dude.