def connect(a,b,strength=200): # try actually creating the connecton
# bpy.ops.object.empty_add(type='PLAIN_AXES', radius=1, view_align=False, location=(0,0,0)) bpy.ops.object.empty_add(type='PLAIN_AXES', radius=1, view_align=False, location=b.location) connection = bpy.context.object; bpy.ops.rigidbody.constraint_add() bpy.context.object.rigid_body_constraint.object1 = a bpy.context.object.rigid_body_constraint.object2 = b bpy.context.object.rigid_body_constraint.use_breaking = True bpy.context.object.rigid_body_constraint.breaking_threshold = strength bpy.context.object.name = "MickConnection" connection.hide = True return; def connect3(a ... Read even more