I'm trying to write a script to add rigid body objects to all objects in the scene. I found this question helpful: How do I add a rigidbody to an object with python?
But when I try the solutions I get a 'context is incorrect' error. I have tried changing the context: bpy.context.area.type = "VIEW_3D"
but I still get the error. What is the correct context?
bpy.ops.rigidbody.world_add.poll()
failed. I am unclear as to what I need to do with the context in order to add the rigid body world and the rigid body objects, and the documentation I've read has been confusing. $\endgroup$ – elu Oct 22 '15 at 23:11