Thank you for your reply ttg, I do understand that ValueTree is not an array, but for occasional purposes I do find it useful to be able to do something like call all the var objects in a ValueTree, or find a different identifier within it rather that it’s ValueTree Type. The iterator only iterates through children of the ValueTree (i.e. other ValueTrees), it would be useful to do so with the properties.
The problem here is, that a ValueTree follows the paradigmata of XML, where the sequence of properties is undefined. So if it would allow to access properties by index, save it to XML and read it back, you get inconsistent behaviour.
But what could be really handy to get all properties as StringArray, so you can iterate over them, but still access the properties by name.
But String and Identifier are also two different things…
That indeed would be extremely useful! String and Identifier are different, but a function to return all of the id’s as a StringArray is certainly doable. For now I’ll create my own function to do so, but it would be nice to have the capacity to do so from the ValueTree directly.