C# setpatch getpatch

has anyone tried to do their own setpatch ?

i need to control the visibilty of a UI plugin node window, without patching stuff around it.

therefore i’m wondering how to “getpatch” the patch xml where the node is living in, without actually physically loading it from disc. anything hidden in the sdk to do this ?

and how to “setpatch” without actually writing to the v4p file.

hei u7,

the general way to “SetPatch” from one of your plugins is using IHDEHost.SendXMLSnippet.

but as you can see on the IHDEHost methods overview page it also has some more convenient methods to use for: SetComponentMode, ShowGUI, …the latter being probably what you’re looking for, even though it seems we’re lacking an option to HideGUI…

if i understand this right, i’m afraid this may not exist even though there is IHDEHost.GetXMLFromSelection but that will only give you the current selection… but then also i am not sure what it would have to do with your initial question to set the visibility of a ui-plugin!?

in general you can definitely argue that the api here is not very well organized. it more-less grew with our needs at the time but not much further to full consistency.

regarding SendXMLSnippet also have a look at https://github.com/vvvv/vvvv-sdk/tree/develop/vvvv45/src/core/Hosting/Refactoring where you can see it in use.

hope some of that helps…

Yes the https://vvvv.org/pluginspecs/html/Methods_T_VVVV_PluginInterfaces_V2_IHDEHost.htm methods look like the solution. We were talking about this before. i tried this but couldnt get it working and the example code was doing too much else in order to filter the essentiel bit.

Ok, i will check this again and use VS rather than the built in code editor to get feedback about my mistake and come back with a detailed IHDEHost question.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.