Why can't I instance the node(s)?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Drawsi


I tried multiple ways of declaring the ‘i’ or ‘_i’ but it just isn’t working

:bust_in_silhouette: Reply From: Ninfur

get_children() returns an array of the child nodes, not an integer.

I believe you can just do this:

for child in lines.get_children():

If you for some reason need an integer, use get_child_count() instead

for i in lines.get_child_count():