I’m trying to disconnect all incoming signals from the scene that other scenes are sending signals to. Apparently I’m supposed to get all the incoming signals, and then disconnect them like:
(from here, by good Thearot)
The “get_incoming_connection” indeed gets all the signals the scene is meant to receive, but the rest is just giving me errors ("Invalid get index ‘signal name’ ")… I have tried all kinds of other variations using the “disconnect” magical word but no matter what I try it’s not working. What am I missing?
ok now I can at least get the signals to print, that’s progress
for cur_conn in conns:
print(cur_conn.signal)
print(cur_conn.callable)
But how do I use the array that the get_incoming_connection is returning?
From the same Help page, I’m supposed to use disconnect and use the signal name and a callable as parameters… So I tried with variations of disconnect(cur_conn.signal, cur_conn.callable)
but I’m only managing to get different error messages.