>>> for objects in bpy.data.objects: ... print(objects.name) ... Camera Cube Lamp >>> for object in bpy.data.objects: ... print(object) ... <bpy_struct, Object("Camera")> <bpy_struct, Object("Cube")> <bpy_struct, Object("Lamp")> >>> for object in bpy.data.objects: ... print(object.location) ... <Vector (7.9362, -7.1326, 3.8174)> <Vector (0.0000, 0.0000, 0.0000)> <Vector (4.0762, 1.0055, 5.9039)> >>> a = 10 >>> print(a) 10 >>> for object in bpy.data.objects: ... print(object.location.x) ... 7.93615198135376 0.0 4.076245307922363