noob joy :)

I was just working on a project where I have 36 objects that I realized I should have had the rigid body property set for each. It took several minutes to do and made me realize it was time to learn how to script Blender!

Since I’ve never used Python either, it took me a bit… Figuring out the appropriate Blender APIs and then learning the Python syntax (it is very different from what I’m used to like AS3, C# and Java). But I was so happy I had to tell someone :slight_smile:

Next time I need to set a property of a large number of objects, it’ll take seconds to type instead of minutes in the interface. Here’s my tiny script that made me so happy:

import Blender

objects = Blender.Object.GetSelected()

for x in objects:
x.rbFlags = x.rbFlags | Blender.Object.RBFlags.RIGIDBODY

Hope this helps another noob,

Welcome in the wonderfull world of Blender scripting. if you like what you did, try to build an interface next, really fun when it works.

LOL! Thank you, Gabio! Pointers to gui building are welcome :slight_smile: