Hello, I’m currently writing a plugin which includes noise generation. I want to provide (from C++) custom blueprint nodes that the user will be able to use to compose his own noise functions.
For this, I’m overriding UK2Node_ConstructObjectFromClass with my own BPNode_CreateNoiseModule. The BPNode_CreateNoiseModule can only create objects whose classes are subclass of my NoiseModule (for instance PerlinNoiseModule, VoronoiNoiseModule, etc.). This part is pretty easy, I’ve followed this tutorial for this.
Now, the tricky part is that I want to display a preview of the result of the NoiseModule in the blueprint node : lets say that the user use my BPNode_CreateNoiseModule to create a PerlinNoiseModule, I want to show an image in the blueprint editor showing the Perlin noise with the parameters chosen by the user.
I’m already able to generate dynamically an image and display it in a blueprint node. But I would like to be able to get the result of the node : the BPNode_CreateNoiseModule is supposed to return a fully initialized NoiseModule, I want to get a reference to this NoiseModule to create my image. Is this possible?