i want to hide the UI window of a plugin when using boygrouping. is there a way besides setpatch ? some window hide from within the plugin ?
There’s IHDEHost.SetComponentMode which wants the node whose component mode to control as INode2. You can get that with IHDEHost.GetNodeFromPath. To get the node path of the node hosting your plugin you’ll need to import the IPluginHost2 interface in your plugin. So should end up to something like this:
[Import] IHDEHost FHdeHost;
[Import] IPluginHost2 FPluginHost;
...
var myPath = FPluginHost.GetNodePath(false);
var selfAsNode = FHdeHost.GetNodeFromPath(myPath);
FHdeHost.SetComponentMode(selfAsNode, ComponentMode.Hidden);
Note I didn’t test this code. Just wrote it down looking at the interfaces. So if it doesn’t work feel free to report back.
@Elias
works like a charm. pretty thank you. no way i would have come up with this.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.