I'm trying to reorder my layers in my grease pencil object using python. The only way I found to do this in code is to make the layer you want to move active and then to use the following command:
But this is not practical when working with multiple layers, and takes a while to execute with the code I currently have. And since I know exactly the order in which I want my layers, it would be much better to assign an order id to a layer directly, and not have to deal with an operator. I've been looking for something that looks like gp_layer.layer_order which would do just that. But I haven't found such a thing and was wondering if it existed anywhere, or if anyone knew of a more efficient way to reorder grease pencil layers.