I am attempting to search the following CListValue return of children for a specific child, as show in the API
childrendirect children of this object, (read-only).
[TABLE=“class: docutils field-list”]
[TR=“class: field-odd field”]
[TH=“class: field-name, bgcolor: #EEDDEE, align: left”]Type :[/TH]
CListValue of KX_GameObject‘s
It prints the children just fine, no issues:
but I cannot search for a specific child like thus:
armsRig = scene.objects["fArmsRig"]childList = armsRig.children for i in childList: print(i) #i = "Spas" if "Spas" in i: print("FoundWEAP")
The “i” DOES contain the Weap.Spas12.Rig object but for some reason i can’t search it… if I uncomment the “i = “Spas”” it does print FoundWEAP, but otherwise it does not… why is this?