输出在打开blender那时出现的控制台里import bpy # 获取当前场景中的所有物体 all_objects = bpy.context.scene.objects # 打印每个物体的名称 for obj in all_objects: print("obj:",obj.name)