Previous Thread  Next Thread

chat icon Add game property to selected objects.

seeeker

Posted: Fri Jul 13, 2012 6:24 am
Joined: 13 Jul 2012
Posts: 1
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!
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group