thedmd / imgui-node-editor

Node Editor built using Dear ImGui
MIT License
3.73k stars 551 forks source link

Some simple example how to store data in the node and send to other nodes #235

Open wecand0 opened 1 year ago

wecand0 commented 1 year ago

Hi, @thedmd! You are creating an awesome project, but I stuck in creating simple application to transfer data from one to others. I have read all issues in this project, and your answer was that developers should release serialize/deserializer data. But I failed to do it, if you some even trash example how to std::string and to send data from Node message with editing to Node Print string in blueprint example or other examples I will be appreciated it very much, please help me and help such dudes like me to draw attention to this Great project more and more developers.

Thank you for all what you do!!!

thedmd commented 1 year ago

There is unfinished example with actrual blueprints backend on https://github.com/thedmd/imgui-node-editor/tree/feature/blueprint-next/examples/blueprints2-example branch. Poking around code should give you a general idea how things are cobbled together. Please note that example is not finished. It may be necessary to step few commits back in the history of the branch to see working example.

Blueprint engine state is serialized to json. Editor is build on top of blueprint engine.

Quick brief: crude_blueprint - blueprint engine crude_blueprint_library - node types crude_layout - simple grid layout to make nodes in editor look ok crude_logger - on screen logger with coloring blueprinteditor* - document based editor, not completed, I was still experimenting with best way to serialize state imgui_extras - various utilities that helps to keep code cleaner and less verbose