PluginHostType has a function for that but it’s not static and idk where a plugin project has the hostType as a variable. I expected it to be in the audioProcessor.
solved: i just learned you can just make an object of PluginHostType and then use the method directly. this thread can be closed, but i would still make it a static or free function, cause why not?
