I have this script:
for ob in own['Stored'][point[1]]:
added = own.scene.addObject(ob[0],own.scene.objects['Empty'],0)
added.worldPosition = ob[1]
for obj in added:
if "Text" in added:
added['Text'] = ob[2]
I have all the values written in a list and I want to access the number 2 value but only if the added object has the property Text.
How can I run a loop for objects in an added object?
This gives me an error: TypeError: 'KX_GameObject' object is not iterable