jonSS I wanted to get an array from itemList

An array of what? get_selected_items() will simply return an array of integers containing the indices of selected list items. An array of all items in the list would be equivalent to what is returned by range(0, item_list.item_count). That's why I above said that this array is implicit. You always know/have this array.

    MikeCL argument

    Take that up with xyz. He's the who makes ignorant contents about ChatGPT every time someone mentions it. If you don't like my feedback, you're welcome to remove my account (and all my posts).

    xyz

    An array of all items in the list would be equivalent to what is returned by range(0, item_list.item_count). That's why I above said that this array is implicit. You always know/have this array.

    Ok great,
    But how would i do to create this array from the itemList ?

    var arr = itemlist1.range(0, item_list.item_count) ?

    do the indexes also change in this array when moving layers up and down ?
    I think godot cant move values in an array, iam not sure how its moving them in itemList

    MikeCL Let's stay focused on the OP and not turn this discussion into an argument.

    Its fine by me ( sometimes its me being hammered by an admin ) noone is arguing chatGPT most of the times creates a loop mixes java with everthing ( iam no sure )...
    but the answers and replies seem to run on a loop until you are forced to ask the same question again... but sometimes it gets it right

      jonSS

      From what I understand ItemList is just a helper node with sole purpose of displaying data in a list. You have to do any modification of your data before passing them on to ItemList.