I have this script:
for ob in own['Stored'][point]: added = own.scene.addObject(ob,own.scene.objects['Empty'],0) added.worldPosition = ob for obj in added: if "Text" in added: added['Text'] = ob
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