Sharing C++ Nodes Between Projects
-
Is there an easy way to import a custom c++ node into a new project?
I'm not just thinking of my own projects, but being able to share nodes with the community, without having to give a list of files they need to track down and replace

No worries if there is not, just had to ask before I do so
Thanks @Christoph-Hart
-
@griffinboy the process is not to complicated to begin with - just drop in the files in the ThirdParty folder and then export the dll.
You might have to edit a JSON file for advanced features like polyphonic support but letβs talk about a automatic import if there is a sizable collection of third party libs available (aka empty room problem).
-
Ah so the other files such as the #includes, and the various refrences to the nodes are auto updated?
That's fantastic thank you, I wasn't sure!
-
G griffinboy marked this topic as a question on
-
G griffinboy has marked this topic as solved on
-
@griffinboy Yes, on DLL export it will:
- Search the
ThirdPartyfolder (non-recursively) and collect all.hfiles - Treat each
.hfile that it finds as separate node (it expects the filename to be the same as the node name, somy_node.hwill need to have a classproject::my_nodeand will shop up asproject.my_nodein the node popup. - If you want files to contain C++ code but don't should be a separate node (eg. third party code that you import), put it into the
srcsubdirectory and include it from your header files that contain the node definition. - Autogenerate the include.h and main.cpp files that register these nodes on export (it will also copy that file into the
AdditionalSourceCode.hdirectory so that the plugin export will also compile these files.
- Search the
-
Really cool, thank you