オブジェクト 全消し 20230806
import bpy
import math
# 新しいシーンを作成
bpy.ops.scene.new()
# オブジェクトを作成
bpy.ops.mesh.primitive_torus_add(
align='WORLD',
location=(0, 0, 0),
rotation=(0, 0, 0),
major_radius=1,
minor_radius=0.06,
major_segments=48,
minor_segments=12
)
# オブジェクトを選択
obj = bpy.context.active_object
# オブジェクト名を変更
obj.name = "MyTorus"