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:
1
2
3
4
5
6
7
8
9
10
publicbooloption;
protectedoverrideRegisterPorts(){
if(option==true){
AddFlowOutput("Out);
}
}
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
Login
Register
By registering on this website you agree to our Privacy Policy.