Hey devvvvs,
Would it be possible to change InputAttribute and OutputAttribute behaviour to allow inheritance and overriding?
While developing the node suite for Message, I ran into some issues for inheritance between nodes. I used that to abstract out some kind of shared functionality, which usually includes pins as well.
This would be working quite nicely, if it weren’t for the Pin Attributes. They can only be defined in exactly one class: either the base class, or in all inheriting node class. This is bad, because I need to do final decisions in the base class, without any way to override this decision.
Let’s say, I want a functionality, where I decide the Formular for a node. In most cases, the users should only select a single Formular, so it makes sense to default that to IsSingle=true (so users can see it only uses 1).
However, there is this one odd node, where it makes sense to have a way to spread this. Currently, there is no way to have both the singular input in the base node (as default for inheriting nodes) and a spreaded input (for my odd node), unless I don’t use inheritance at all, and instead copy and paste shitloads of code.