How can I get the index of a custom property? Is there any chance to get index of custom property ?



Thanks to batFINGER I found that you can acces custom property by: 

import bpy
bpy.context.active_object.keys()[i] # i is index


but if I have array in the property i dont know how to find specific value. I used: 

bpy.context.active_object.get(bpy.context.active_object.keys()[2][2])


for third value of the array but it doesnt work.
Lets dissect what your code does:

key = bpy.context.active_object.keys()[2]
# key contains the name '02_back'

char = key[2]
# gets the third character which is '_'

bpy.context.active_object.get(char)
# which throws an error as key '_' does not exist


It should be

bpy.context.active_object.get(bpy.context.active_object.keys()[2])[2]


Let's dissect this

key = bpy.context.active_object.keys()[2]
# key contains the name '02_back'

prop = bpy.context.active_object.get(key)
# gets the property with the name '02_back'

value = prop[2]
# gets the third item of the property `1.2`