I would like to add a specific game property to all objects selected.
The only way to add it that I see is to use:
| Code: |
| bpy.ops.object.game_property_new() |
which cannot be used in an scenario like:
| Code: |
for obj in bpy.context.selected_objects
...
obj.game_property_new(...)
...
|
Can anyone throw me a hint? thanks!