そうだろう！

``` python
import bpy

# Set the name of the objects to be converted
obj_name = "my_object"

# Get all objects in the scene
all_objects = bpy.context.scene.objects

# Loop through all objects and convert ones with the specified name to point lights
for obj in all_objects:
    if obj.name.startswith(obj_name):
        # Create a new point light
        bpy.ops.object.light_add(type='POINT', location=obj.location)
        light = bpy.context.active_object
        light.name = obj.name + "_light"
        
        # Remove the original object
        bpy.data.objects.remove(obj)

```

見ての通り、blenderpyをインポートし、オブジェクトの名前を変数に設定します（これは必要に応じて変更してください）。次に、"all_objects "という変数にシーン内のすべてのオブジェクトを入れます。
次に、すべてのオブジェクトをループし、新しいポイントライトを作成します。
最後に、元のオブジェクトを削除する。
You got it!

``` python
import bpy

# Set the name of the objects to be converted
obj_name = "my_object"

# Get all objects in the scene
all_objects = bpy.context.scene.objects

# Loop through all objects and convert ones with the specified name to point lights
for obj in all_objects:
    if obj.name.startswith(obj_name):
        # Create a new point light
        bpy.ops.object.light_add(type='POINT', location=obj.location)
        light = bpy.context.active_object
        light.name = obj.name + "_light"
        
        # Remove the original object
        bpy.data.objects.remove(obj)

```

As you can see, we import blenderpy and set up a variable with the name of the object (change this to your needs). Then we fill a variable "all_objects" with all the objects in the scene.
Next we loop over all the objects, create a new point light, name to the name of the original object suffixed with "_light".
Lastly, we remove the original object.