DAW <> Plugin sync scaling
-
Need a plugin to scale to FL Studios scale factor, but the following doesn't work, it only displays a factor of 1.0.
Content.makeFrontInterface(480, 240); const var lbl = Content.addLabel("lbl", 0, 0); // Detect host scale var hostScale = Settings.getZoomLevel(); lbl.set("text", hostScale); // Apply scale to UI Settings.setZoomLevel(hostScale);Extra Definitions Windows:
HI_VIEW_IS_DPI_AWARE=1
JUCE_WIN_PER_MONITOR_DPI_AWARE=1Toggling FL Studios DPI Aware setting doesn't help
Maybe Settings.getZoomLevel(); gets the plugin scaling, not the DAW?
-
@Bart said in DAW <> Plugin sync scaling:
var hostScale = Settings.getZoomLevel();
Settings.getZoomLevel()returns the current zoom level of your plugin, I don't believe there is away to get the scaling factor of the daw. -
@David-Healey Ok thanks.
Do you know if its possible to detect a screens resolution, to implement a full screen toggle option?
-
@Bart
Content.getScreenBounds(true) -
@David-Healey Oh lol, brilliant thanks!
One last thing, is there a source of information about setting Extra Definitions?
I'm probably searching in the wrong places, apologies. -
@Bart There is no single source, there is scattered information on the forum and the docs. What do you want to know?
-
Basically a list of what definitions exist and what they do..
-
I don't believe there is away to get the scaling factor of the daw.
Assuming it's neither possible to get the OS scaling factor?
-
@Bart said in DAW <> Plugin sync scaling:
Assuming it's neither possible to get the OS scaling factor?
Not as far as I'm aware. I think JUCE might make it available so it could be possible to add it to HISE.
@Bart said in DAW <> Plugin sync scaling:
Basically a list of what definitions exist and what they do..
There is an out of date Google sheet somewhere that lists a lot of them. There are also some that are toggleable from the Help >> About menu in HISE.
Oh here it is: https://forum.hise.audio/topic/8023/preprocesor-definitions?_=1767740498748
-
Awesome! Thanks for your input David!
Really appreciate your video tutorials also.. I would have likely never attempted plugin dev scripting otherwise, great work ;)
Hise for the WIN