Hello prob a noob question but I’m pretty new. (a few months in now) Not sure if I’m overlooking something but I’ve connected several signals on this project but every time I try to do so on a control node script to a canvas layer script it wont trigger the function it is connected to. I checked to the node.is_connected() and it came back as true. Not sure why its not calling the func and passing the data. Not sure if custom signals work with control nodes? Any help would be greatly apricated.
The nodes are all being instanced if that makes a difference.
Your signal is declared without parameters. You emit the signal with parameters.
However I just tested this and it should work. Seems strange to me but it isn’t likely your issue.
I am guessing the code reaches the function and it is in there that either the for loop isn’t getting any children or the if statements are coming up false.
Put a breakpoint (or a print statement) on the first line of _load_copy_parse() function and see if it gets there.
I also don’t understand what you are doing with the double await statements or if either of them are even necessary.
@aawwaaa This was the issue! Thank you for your help!! Just moved all the code to a new func and had it run only if it was connected with node.is_connected if statement. and it runs wonderfully!! Thanks again!