xyz Yeah, totally makes sense.

If you're going to keep posting nonsense, at least keep it out of this kind of discussion so it doesn't confuse users who need help.

    DaveTheCoder If you're going to keep posting nonsense

    You're not the "nonsense" police around here, Dave. If you proclaim something a nonsense, you'll have to provide some arguments that support that claim. An user cited faulty information gotten from ChatGPT. I said stay away from it. You said that's nonsense. How's what I said a nonsense in this context? The only nonsense here is what ChatGPT "said". And for some reason you proceeded to defend that source of faulty information. I'd really like to understand your motivations here.

    So the ItemList represents your layers array?

    yes
    but itemList only returns an array with get_selected_items()

    if i could get all the items on itemlist without having them selected maybe it could use it with the array on the other side
    [edit] in the func process() also on the other side since EditorInspectorPlugin doesnt have process(), but it leads to a lot of confusion i have buttons to add and remove (layers)

    p.s. chatGPT creates a loop

    • xyz replied to this.

      jonSS What do you mean by "get all the items on ItemList". What exact information you want to get for each item on the list?

        xyz
        I wanted to get an array from itemList
        and set the layers.Lnum array on the other side, to be equal to that array

        The problem is i have buttons to move items up or down, and to add or remove items
        I dont know how to make an array out of itemList without having to update it on all the buttons, and copy / paste all the layers multiple times, even if its possible it would be a waste to have 2 vars for each item... itemList would only function has a picture

        • xyz replied to this.

          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.