Is there such as thing as a Code Node?

We have it in Houdini

We have these in Houdini in various contexts for exactly the purpose you describe: Avoiding a large unwieldy node network where a snippet of code will do. Also not intended for large code blocks. We use them to encapsulate a little python or VEX script. We call them “wrangler” nodes. +1 for something similar in Blueprint.

Yes, something similar to Houdini’s wrangler node extension would be pretty cool.
So you can add a function node to a blueprint, where the function pins still behave as is, but the graph become a text editor that you can only call existing functions(available in context) and operations.

ps. and your graph with y is wrong.

Yeah, didn’t notice that until you mentioned it! Some things are just easier to ‘see’ in code I suppose!

Just maths would do. Just a node with variable inputs and outputs, and a line for typing in operations using the variables.

Super good idea.

somthing similar to what game maker 2 dose.
this is something that would make the engine a perfect coding software. unfortunately there is NO way to do this and no plugin. you have to go through the hell of making a 2 way project and constantly fix things because even this isn’t actually supposed to be an intended thing.

There’s a plugin called Magic Nodes which attempts to do exactly this.

I have no idea how good / finished / production-ready it is though.