I have a special case, where I would like a class that extends FlowControlNode, and it has some logic that as things happen to it, it would like to add new value and flow “output” ports, but I can’t seem to figure out how to get that to appear visually. Is there a this.refresh(); method or something I’m missing?
Refreshing a node can be done with a call to this.GatherPorts().
The node will then simply re-gather the ports that you tell it to add within the RegisterPorts method callback.
All AddPort calls (like AddValueOutput, AddFlowOutput etc), should better be done within that RegisterPorts method callback, but of course based on some variable checks for example for options, you could chose to add a port or not, like for example:
Let me know if that helps, but if not, please provide me a bit more information on what you want to achieve more specifically so that I can provide a better suited solution if possible 🙂