Reply To: Force refresh of node

FlowCanvas Forums Support Force refresh of node Reply To: Force refresh of node

#1724
Gavalakis
Keymaster

Hello,

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 🙂
Thanks!

Join us on Discord: https://discord.gg/97q2Rjh