How can I ensure that when I press a button in this widget, “another widget (WB_Plan)” remains open if it is open, and closed if it is closed?
Don’t remove All Widgets. Start referencing widgets if the plan is to reuse and control them.
I don’t want to remove widgets one by one instead of removing all widgets. Because I use this button in a lot of widgets. The only thing stopping me is the “WB_Plan” widget. Or can I somehow exclude this “WB_Plan” widget from the “remove all” widget?
Not really. It’s a fire & forget node - that’s what it’s for. You could try:
But you must start referencing your widgets so you can access them when needed later on. There are more ways of doing the above but all revolve around using proper communication. Spamming Remove All
does what it says on the tin.
If you are truly desperate, you can always:
It will work providing there is only 1 widget of that class instantiated - the widget in the upper left will be spared removal. But this is, by far, the worst possible way to do it.
Thank you for your help…
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.