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!
-
-
-
@griffinboy Yes, on DLL export it will:
- Search the
ThirdParty
folder (non-recursively) and collect all.h
files - Treat each
.h
file that it finds as separate node (it expects the filename to be the same as the node name, somy_node.h
will need to have a classproject::my_node
and will shop up asproject.my_node
in 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
src
subdirectory 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.h
directory so that the plugin export will also compile these files.
- Search the
-
Really cool, thank you