Little C++ help required
-
I want to make a script wrapper for the
importPresetFromClipboard
function which is in thePresetHelpers
struct. How can I access this function fromScriptExpansion.cpp
? I triedPresetHelpers::importPresetFromClipboard
but that of course fails. -
@d-healey I think because struct isn't inside a header file it can't be included in the ScriptExpansion.cpp class
So maybe try moving the whole struct into PresetBrowser.h and include it in ScriptExpansion.cpp, but it might be a bit more subtle...
Also have you triedstruct PresetHelpers PresetHelpers::importPresetFromClipboard
Since they are in the same namespace? But I bet you I'm saying non-sense